Versions in this module Expand all Collapse all v6 v6.9.3 Mar 25, 2026 Changes in this version + func SetModelRefreshCallback(cb ModelRefreshCallback) + func StartModelsUpdater(ctx context.Context) + type ModelInfo struct + ContextLength int + Created int64 + Description string + DisplayName string + ID string + InputTokenLimit int + MaxCompletionTokens int + Name string + Object string + OutputTokenLimit int + OwnedBy string + SupportedGenerationMethods []string + SupportedInputModalities []string + SupportedOutputModalities []string + SupportedParameters []string + Thinking *ThinkingSupport + Type string + UserDefined bool + Version string + func GetAIStudioModels() []*ModelInfo + func GetAntigravityModels() []*ModelInfo + func GetClaudeModels() []*ModelInfo + func GetCodexFreeModels() []*ModelInfo + func GetCodexPlusModels() []*ModelInfo + func GetCodexProModels() []*ModelInfo + func GetCodexTeamModels() []*ModelInfo + func GetGeminiCLIModels() []*ModelInfo + func GetGeminiModels() []*ModelInfo + func GetGeminiVertexModels() []*ModelInfo + func GetIFlowModels() []*ModelInfo + func GetKimiModels() []*ModelInfo + func GetQwenModels() []*ModelInfo + func GetStaticModelDefinitionsByChannel(channel string) []*ModelInfo + func LookupModelInfo(modelID string, provider ...string) *ModelInfo + func LookupStaticModelInfo(modelID string) *ModelInfo + type ModelRefreshCallback func(changedProviders []string) + type ModelRegistration struct + Count int + Info *ModelInfo + InfoByProvider map[string]*ModelInfo + LastUpdated time.Time + Providers map[string]int + QuotaExceededClients map[string]*time.Time + SuspendedClients map[string]string + type ModelRegistry struct + func GetGlobalRegistry() *ModelRegistry + func (r *ModelRegistry) CleanupExpiredQuotas() + func (r *ModelRegistry) ClearModelQuotaExceeded(clientID, modelID string) + func (r *ModelRegistry) ClientSupportsModel(clientID, modelID string) bool + func (r *ModelRegistry) GetAvailableModels(handlerType string) []map[string]any + func (r *ModelRegistry) GetAvailableModelsByProvider(provider string) []*ModelInfo + func (r *ModelRegistry) GetFirstAvailableModel(handlerType string) (string, error) + func (r *ModelRegistry) GetModelCount(modelID string) int + func (r *ModelRegistry) GetModelInfo(modelID, provider string) *ModelInfo + func (r *ModelRegistry) GetModelProviders(modelID string) []string + func (r *ModelRegistry) GetModelsForClient(clientID string) []*ModelInfo + func (r *ModelRegistry) RegisterClient(clientID, clientProvider string, models []*ModelInfo) + func (r *ModelRegistry) ResumeClientModel(clientID, modelID string) + func (r *ModelRegistry) SetHook(hook ModelRegistryHook) + func (r *ModelRegistry) SetModelQuotaExceeded(clientID, modelID string) + func (r *ModelRegistry) SuspendClientModel(clientID, modelID, reason string) + func (r *ModelRegistry) UnregisterClient(clientID string) + type ModelRegistryHook interface + OnModelsRegistered func(ctx context.Context, provider, clientID string, models []*ModelInfo) + OnModelsUnregistered func(ctx context.Context, provider, clientID string) + type ThinkingSupport struct + DynamicAllowed bool + Levels []string + Max int + Min int + ZeroAllowed bool v6.9.2-rc1 Mar 25, 2026