Versions in this module Expand all Collapse all v0 v0.0.1 Sep 4, 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 DeploymentConfigFromProviderState(cfg *config.ProviderConfig, provider string) config.DeploymentConfig + func DeploymentProvider(ctx context.Context, cfg *config.ProviderConfig) (client.Provider, error) + func DeploymentProviderFromCatalog(cfg *config.ProviderConfig, compiled *catalog.CompiledCatalog) (client.Provider, error) + func DeploymentProviderFromState(cfg *config.ProviderConfig, compiled *catalog.CompiledCatalog) (client.Provider, error) + func DeploymentRoutingFromState(cfg *config.ProviderConfig) bool + 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 LoadCompiledCatalog(ctx context.Context) (*catalog.CompiledCatalog, error) + func ProviderForDeployment(id string, deployment config.DeploymentConfig) (client.Provider, bool) + func ProviderForDeploymentFromState(id string, deployment config.DeploymentConfig, cfg *config.ProviderConfig) (client.Provider, bool) + func ProviderIDForDeployment(compiled *catalog.CompiledCatalog, 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 RoutingPreviewFromPaths(ctx context.Context, model, providerConfigPath, catalogCachePath 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.CompiledCatalog, 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) + func DeploymentStatusFromPaths(ctx context.Context, activeModel, providerConfigPath, catalogCachePath string) (StatusReport, error)