Versions in this module Expand all Collapse all v0 v0.1.3 Jul 4, 2026 Changes in this version + const GatewayXiaomiTokenPlan + func ActiveGateway(ctx context.Context) string + func ActiveProviderID(provider string) string + func ApplyCredentialsForProvider(ctx context.Context, providerID string) (*setup.ApplyCredentialsResult, error) + func ApplyGatewayEnv(ctx context.Context, providerID string) + func AvailableProviders() []string + func CachedModelCountForProvider(ctx context.Context, provider string) int + func CatalogProviderID(provider string) string + func ChatProvider(ctx context.Context) (client.Provider, error) + func CredentialEnvKeys(providerID string) []string + func DefaultModelForProvider(ctx context.Context, provider string) string + func DeploymentRoutingEnabled(ctx context.Context, override *bool) bool + func DeploymentStatus(ctx context.Context, activeModel string) (setup.StatusReport, error) + func FormatApplyCredentialsSummary(result *setup.ApplyCredentialsResult) string + func FormatDeploymentStatus(report setup.StatusReport) string + func GatewayDisplayName(providerID string) string + func GatewayNeedsRegion(providerID string) bool + func GatewayRegionLabel(providerID string) string + func HasConfiguredDeployment(ctx context.Context) bool + func HasStoredCredential(ctx context.Context, providerID string) bool + func IsSetupGateway(providerID string) bool + func NormalizeProviderID(provider string) string + func PreferredProvider(ctx context.Context) string + func PrepareCredentialDiscovery(ctx context.Context) + func RefreshGatewayCatalog(ctx context.Context, providerID string) (string, error) + func ResolveCanonicalModel(ctx context.Context, model string) string + func RoutingPreview(ctx context.Context, model string) (string, error) + func SetGatewayRegion(providerID, region string) error + func SetupGatewayCredentialEnv(providerID string) string + func SetupGatewayID(provider string) string + func SetupGateways() []string + func ShouldClearSelectionAfterCredentialRemove(ctx context.Context, removedProvider string) bool + func SyncSelectionWithCredentials(ctx context.Context) + type ChatTransport struct + Provider client.Provider + Selection SelectionState + func ResolveChatTransport(ctx context.Context, opts ChatTransportOpts) (ChatTransport, error) + func ResolveChatTransportFromSelection(ctx context.Context, selection SelectionState) (ChatTransport, error) + type ChatTransportOpts struct + Selection SelectionOpts + type GatewayStatus struct + Active bool + DisplayName string + HasConfiguredDeployment bool + HasStoredCredential bool + ID string + ModelCount int + RegionLabel string + RegionRequired bool + func GatewayStatuses(ctx context.Context, opts GatewayStatusOpts) []GatewayStatus + type GatewayStatusOpts struct + ActiveModel string + ActiveProvider string + type SelectionOpts struct + DeploymentRoutingOverride *bool + ModelOverride string + ProviderOverride string + type SelectionState struct + DeploymentRouting bool + HasConfiguredDeployment bool + Model string + Provider string + func EffectiveSelection(ctx context.Context, opts SelectionOpts) SelectionState v0.1.1 Jun 25, 2026 Changes in this version + func ActiveModel(ctx context.Context) string + func ActiveProvider(ctx context.Context) string + func AllModelIDs(ctx context.Context) ([]string, error) + func ClearActiveSelection(ctx context.Context) error + func CommitCredential(ctx context.Context, inference CredentialInference, secret string) error + func DefaultModelProviderFilter(ctx context.Context) string + func DefaultPaths() (catalogPath, providerPath string) + func FormatPreflightReport(r PreflightReport) string + func FormatSetupError(providerID string, err error) error + func ModelsForProvider(ctx context.Context, provider string) ([]catalog.ModelCatalogEntry, error) + func PrimaryAPIKeyEnv(deploymentID string) string + func ProbeCredential(ctx context.Context, envKey, secret string) error + func ProviderIDForDeployment(deploymentID string) string + func SaveCredential(ctx context.Context, inference CredentialInference, secret string) error + func SetActiveModel(ctx context.Context, modelID string) error + func SetActiveProvider(ctx context.Context, provider string) error + func SetCredential(ctx context.Context, envKey, secret string) error + func SetupUIFromCatalog(ctx context.Context, providerFilter string) (*setup.SetupUI, error) + func ValidateKeyFormat(secret string) error + type ApplyResult struct + Catalog *catalog.RefreshResult + Provider *config.ProviderConfig + ProviderPath string + RoutingJSON string + Setup *setup.SetupUI + func Apply(ctx context.Context, creds catalog.Credentials) (*ApplyResult, error) + func Discover(ctx context.Context) (*ApplyResult, error) + type CredentialInference = config.CredentialInference + func InferCredentialsFromAPIKey(ctx context.Context, secret string) []CredentialInference + func InferenceForProvider(providerID string) (CredentialInference, error) + func LocalCredentialInference(providerID string) (CredentialInference, error) + type CredentialProviderOption = config.CredentialProviderOption + func ListCredentialProviders() []CredentialProviderOption + type CredentialResolveResult = config.CredentialResolveResult + func ResolveCredential(ctx context.Context, secret string) CredentialResolveResult + type CredentialTarget struct + DeploymentID string + EnvVar string + ProviderID string + Set bool + type DeploymentRow struct + Configured bool + ID string + Name string + PrimaryEnv string + ProviderID string + Status string + type ListModelSource string + const ListSourceAuto + const ListSourceCache + const ListSourceLive + type ListModelsOpts struct + ProviderID string + Refresh bool + Source ListModelSource + type ModelEntry struct + ContextWindow int + DisplayName string + ID string + InputPricePer1M float64 + Installed bool + OutputPricePer1M float64 + Owner string + ProviderID string + Source string + func ListModels(ctx context.Context, opts ListModelsOpts) ([]ModelEntry, error) + type PreflightCheck struct + Detail string + Name string + Status PreflightStatus + type PreflightReport struct + Checks []PreflightCheck + Ready bool + func Preflight(ctx context.Context) PreflightReport + type PreflightStatus string + const PreflightFail + const PreflightOK + const PreflightWarn + type ProviderSetupOption struct + Action string + Label string + func ListProviderSetupOptions(ctx context.Context) []ProviderSetupOption + type Runtime struct + Catalog *catalog.CompiledCatalogV1 + Provider *config.ProviderConfig + ProviderPath string + func Load(ctx context.Context) (*Runtime, error) + func (r *Runtime) ChatProvider(ctx context.Context) (client.Provider, error) + func (r *Runtime) CredentialTargets() []CredentialTarget + func (r *Runtime) DeploymentRows() ([]DeploymentRow, error) + func (r *Runtime) ModelEntriesForProvider(provider string) []catalog.ModelCatalogEntry + func (r *Runtime) ModelIDs() []string + func (r *Runtime) ProviderConfigJSON() (string, error) + func (r *Runtime) RoutingPreviewJSON(model string) (string, error)