Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
types/model: remove MarshalText/UnmarshalText from Digest (#3586)
Blake Mizerany62f8cda3b3ad
diff --git a/types/model/digest.go b/types/model/digest.goindex f3cefa009..f18c6c862 100644--- a/types/model/digest.go+++ b/types/model/digest.go@@ -38,20 +38,6 @@ func (d Digest) String() string { return d.s }// ParseName(name).Digest().func (d Digest) IsValid() bool { return d.s != "" }-// MarshalText implements encoding.TextMarshaler.-func (d Digest) MarshalText() ([]byte, error) {- return []byte(d.String()), nil-}--// UnmarshalText implements encoding.TextUnmarshaler.-func (d *Digest) UnmarshalText(text []byte) error {- if d.IsValid() {- return errors.New("model.Digest: illegal UnmarshalText on valid Digest")- }- *d = ParseDigest(string(text))- return nil-}-// LogValue implements slog.Value.func (d Digest) LogValue() slog.Value {return slog.StringValue(d.String())