MCPcopy Index your code
hub / github.com/coder/coder / canonical

Method canonical

coderd/ai_providers_migrate.go:245–255  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

243}
244
245func (d desiredAIProvider) canonical() canonicalAIProvider {
246 c := canonicalAIProvider{
247 Type: string(d.Type),
248 BaseURL: d.BaseURL,
249 }
250 if d.Bedrock != nil {
251 c.BedrockRegion = d.Bedrock.Region
252 }
253 c.KeysHash = computeKeysHash(d.Keys, d.Bedrock)
254 return c
255}
256
257// computeKeysHash produces a deterministic hash over the bearer API
258// keys and, for Bedrock providers, the access key and secret.

Callers 2

SeedAIProvidersFromEnvFunction · 0.95
providersFromEnvFunction · 0.95

Calls 1

computeKeysHashFunction · 0.85

Tested by

no test coverage detected