Versions in this module Expand all Collapse all v0 v0.1.3 Jul 4, 2026 v0.1.1 Jun 25, 2026 Changes in this version + func CloneStringMap(in map[string]string) map[string]string + func ConfiguredDeploymentAdapters(cfg *config.ProviderConfig) map[string]router.DeploymentAdapter + func ConfiguredDeployments(cfg *config.ProviderConfig) map[string]config.DeploymentConfig + func DefaultDeploymentForProvider(provider string) string + func DeploymentProvider(ctx context.Context, cfg *config.ProviderConfig) (client.Provider, error) + func DiscoverModelCatalog(ctx context.Context, creds catalog.Credentials) (*catalog.RefreshResult, error) + func DiscoverModelCatalogWithOptions(ctx context.Context, creds catalog.Credentials, ...) (*catalog.RefreshResult, error) + func DiscoverProviderCatalog(ctx context.Context, providerID string, creds catalog.Credentials) (*catalog.RefreshResult, error) + func FirstNonEmpty(values ...string) string + func FormatStatus(report StatusReport) string + func LegacyDeploymentConfig(cfg *config.ProviderConfig, provider string) config.DeploymentConfig + func LoadCompiledCatalog(ctx context.Context) (*catalog.CompiledCatalogV1, error) + func ProviderForDeployment(id string, deployment config.DeploymentConfig) (client.Provider, bool) + func ProviderIDForDeployment(compiled *catalog.CompiledCatalogV1, deploymentID string) string + func RouterRoutingPolicy(policy *config.RoutingPolicy) router.RoutingPolicy + func RouterRoutingStageMap(in map[string][]config.RoutingStage) map[string][]router.RoutingStage + func RouterRoutingStages(stages []config.RoutingStage) []router.RoutingStage + func RoutingPreview(ctx context.Context, model string) (string, error) + func SaveProviderConfigV2(cfg *config.ProviderConfig) error + func UseDeploymentRouting(cfg *config.ProviderConfig) bool + type ApplyCredentialsResult struct + Catalog *catalog.RefreshResult + ProviderConfig *config.ProviderConfig + ProviderConfigPath string + RoutingJSON string + Setup *SetupUI + func ApplyCredentials(ctx context.Context, creds catalog.Credentials) (*ApplyCredentialsResult, error) + func ApplyCredentialsForProvider(ctx context.Context, providerID string, creds catalog.Credentials) (*ApplyCredentialsResult, error) + type DiscoverModelCatalogOptions struct + ForceRefresh bool + type ModelUI struct + CanonicalID string + DisplayName string + Source string + type ProviderUI struct + DisplayName string + ID string + Models []ModelUI + type SetupUI struct + Providers []ProviderUI + func BuildSetupUI(compiled *catalog.CompiledCatalogV1, providerFilter string) *SetupUI + type StatusReport struct + ActiveModel string + CatalogCache string + CatalogDeployments int + CatalogExists bool + CatalogModels int + CatalogModified time.Time + CatalogOfferings int + CatalogStale bool + ConfigVersion int + Configured []string + DeploymentRouting bool + ProviderConfig string + RoutingSource string + RoutingStages int + func DeploymentStatus(ctx context.Context, activeModel string) (StatusReport, error)