Versions in this module Expand all Collapse all v1 v1.12.0 Aug 17, 2026 Changes in this version + func ModelRef(id string, config *ChatConfig) ai.ModelRef + type ChatConfig struct + DoSample *bool + MaxOutputTokens int + StopSequences []string + Temperature *float64 + Thinking *ThinkingConfig + TopP *float64 + func (c ChatConfig) ApplyToChatCompletion(params *openai.ChatCompletionNewParams) + type ThinkingConfig struct + ClearThinking *bool + Type ThinkingType + type ThinkingType string + const ThinkingTypeDisabled + const ThinkingTypeEnabled + type ZAI struct + APIKey string + Models map[string]ai.ModelOptions + Opts []option.RequestOption + func (z *ZAI) Init(ctx context.Context) []api.Action + func (z *ZAI) ListActions(ctx context.Context) []api.ActionDesc + func (z *ZAI) Name() string + func (z *ZAI) ResolveAction(atype api.ActionType, id string) api.Action