Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
remove unnecessary code (#13502)
Michael Yang2dd029de1296
diff --git a/model/bytepairencoding.go b/model/bytepairencoding.goindex acb58743b..765331bf8 100644--- a/model/bytepairencoding.go+++ b/model/bytepairencoding.go@@ -2,9 +2,7 @@ package modelimport ("cmp"- "fmt""iter"- "log/slog""slices""strings"@@ -245,14 +243,6 @@ func (bpe BytePairEncoding) Encode(s string, addSpecial bool) ([]int32, error) {return ids, nil}-type lazyIdsString struct {- ids []int32-}--func (l lazyIdsString) LogValue() slog.Value {- return slog.AnyValue(fmt.Sprint(l.ids))-}-func (bpe BytePairEncoding) Decode(ids []int32) (string, error) {var sb strings.Builderfor _, id := range ids {@@ -277,6 +267,6 @@ func (bpe BytePairEncoding) Decode(ids []int32) (string, error) {}}- logutil.Trace("decoded", "string", sb.String(), "from", lazyIdsString{ids: ids})+ logutil.Trace("decoded", "string", sb.String(), "from", ids)return sb.String(), nil}