You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Code that directly calls a genai type’s UnmarshalJSON(data) should use json.Unmarshal(data, &value). On Go 1.27, both encoding/json and encoding/json/v2 decode these types. Code that tests for the old json.Unmarshaler interface should test for encoding/json/v2.UnmarshalerFrom when it needs the streaming hook. For example, *genai.Message now implements UnmarshalJSONFrom.
Exported raw JSON fields and genai.JSONSchema now use encoding/json/jsontext.Value. On the supported Go 1.27 build, encoding/json.RawMessage is an alias for that type, so existing raw messages still work in ToolDef.InputSchemaOverride and GenOptionText.DecodeAs. For schema bytes held in a plain []byte, pass genai.JSONSchema(raw) to DecodeAs so the provider receives your schema. Existing provider payloads and recordings keep their wire formats.
Features
Mistral model metadata exposes the embedding capability. Pollinations text model metadata includes the list of MCP servers.