Documentation
¶
Index ¶
- func BuildConfigChangeDetails(oldCfg, newCfg *config.Config) []string
- func ComputeClaudeModelsHash(models []config.ClaudeModel) string
- func ComputeExcludedModelsHash(excluded []string) string
- func ComputeOpenAICompatModelsHash(models []config.OpenAICompatibilityModel) string
- func ComputeVertexCompatModelsHash(models []config.VertexCompatModel) string
- func DiffOAuthExcludedModelChanges(oldMap, newMap map[string][]string) ([]string, []string)
- func DiffOpenAICompatibility(oldList, newList []config.OpenAICompatibility) []string
- func SummarizeOAuthExcludedModels(entries map[string][]string) map[string]ExcludedModelsSummary
- type AmpModelMappingsSummary
- type ExcludedModelsSummary
- type VertexModelsSummary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildConfigChangeDetails ¶
BuildConfigChangeDetails computes a redacted, human-readable list of config changes. Secrets are never printed; only structural or non-sensitive fields are surfaced.
func ComputeClaudeModelsHash ¶
func ComputeClaudeModelsHash(models []config.ClaudeModel) string
ComputeClaudeModelsHash returns a stable hash for Claude model aliases.
func ComputeExcludedModelsHash ¶
ComputeExcludedModelsHash returns a normalized hash for excluded model lists.
func ComputeOpenAICompatModelsHash ¶
func ComputeOpenAICompatModelsHash(models []config.OpenAICompatibilityModel) string
ComputeOpenAICompatModelsHash returns a stable hash for OpenAI-compat models. Used to detect model list changes during hot reload.
func ComputeVertexCompatModelsHash ¶
func ComputeVertexCompatModelsHash(models []config.VertexCompatModel) string
ComputeVertexCompatModelsHash returns a stable hash for Vertex-compatible models.
func DiffOAuthExcludedModelChanges ¶
DiffOAuthExcludedModelChanges compares OAuth excluded models maps.
func DiffOpenAICompatibility ¶
func DiffOpenAICompatibility(oldList, newList []config.OpenAICompatibility) []string
DiffOpenAICompatibility produces human-readable change descriptions.
func SummarizeOAuthExcludedModels ¶
func SummarizeOAuthExcludedModels(entries map[string][]string) map[string]ExcludedModelsSummary
SummarizeOAuthExcludedModels summarizes OAuth excluded models per provider.
Types ¶
type AmpModelMappingsSummary ¶
type AmpModelMappingsSummary struct {
// contains filtered or unexported fields
}
func SummarizeAmpModelMappings ¶
func SummarizeAmpModelMappings(mappings []config.AmpModelMapping) AmpModelMappingsSummary
SummarizeAmpModelMappings hashes Amp model mappings for change detection.
type ExcludedModelsSummary ¶
type ExcludedModelsSummary struct {
// contains filtered or unexported fields
}
func SummarizeExcludedModels ¶
func SummarizeExcludedModels(list []string) ExcludedModelsSummary
SummarizeExcludedModels normalizes and hashes an excluded-model list.
type VertexModelsSummary ¶
type VertexModelsSummary struct {
// contains filtered or unexported fields
}
func SummarizeVertexModels ¶
func SummarizeVertexModels(models []config.VertexCompatModel) VertexModelsSummary
SummarizeVertexModels hashes vertex-compatible models for change detection.