diff

package
v6.6.76 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 1, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildConfigChangeDetails

func BuildConfigChangeDetails(oldCfg, newCfg *config.Config) []string

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 ComputeCodexModelsHash added in v6.6.62

func ComputeCodexModelsHash(models []config.CodexModel) string

ComputeCodexModelsHash returns a stable hash for Codex model aliases.

func ComputeExcludedModelsHash

func ComputeExcludedModelsHash(excluded []string) string

ComputeExcludedModelsHash returns a normalized hash for excluded model lists.

func ComputeGeminiModelsHash added in v6.6.71

func ComputeGeminiModelsHash(models []config.GeminiModel) string

ComputeGeminiModelsHash returns a stable hash for Gemini model aliases.

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

func DiffOAuthExcludedModelChanges(oldMap, newMap map[string][]string) ([]string, []string)

DiffOAuthExcludedModelChanges compares OAuth excluded models maps.

func DiffOAuthModelMappingChanges added in v6.6.71

func DiffOAuthModelMappingChanges(oldMap, newMap map[string][]config.ModelNameMapping) ([]string, []string)

DiffOAuthModelMappingChanges compares OAuth model mappings 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.

func SummarizeOAuthModelMappings added in v6.6.71

func SummarizeOAuthModelMappings(entries map[string][]config.ModelNameMapping) map[string]OAuthModelMappingsSummary

SummarizeOAuthModelMappings summarizes OAuth model mappings per channel.

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 ClaudeModelsSummary added in v6.6.71

type ClaudeModelsSummary struct {
	// contains filtered or unexported fields
}

func SummarizeClaudeModels added in v6.6.71

func SummarizeClaudeModels(models []config.ClaudeModel) ClaudeModelsSummary

SummarizeClaudeModels hashes Claude model aliases for change detection.

type CodexModelsSummary added in v6.6.71

type CodexModelsSummary struct {
	// contains filtered or unexported fields
}

func SummarizeCodexModels added in v6.6.71

func SummarizeCodexModels(models []config.CodexModel) CodexModelsSummary

SummarizeCodexModels hashes Codex model aliases 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 GeminiModelsSummary added in v6.6.71

type GeminiModelsSummary struct {
	// contains filtered or unexported fields
}

func SummarizeGeminiModels added in v6.6.71

func SummarizeGeminiModels(models []config.GeminiModel) GeminiModelsSummary

SummarizeGeminiModels hashes Gemini model aliases for change detection.

type OAuthModelMappingsSummary added in v6.6.71

type OAuthModelMappingsSummary struct {
	// contains filtered or unexported fields
}

type VertexModelsSummary

type VertexModelsSummary struct {
	// contains filtered or unexported fields
}

func SummarizeVertexModels

func SummarizeVertexModels(models []config.VertexCompatModel) VertexModelsSummary

SummarizeVertexModels hashes Vertex-compatible model aliases for change detection.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL