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

Function ProviderAllowsAmbientCredentials

coderd/x/chatd/chatprovider/chatprovider.go:83–85  ·  view source on GitHub ↗

ProviderAllowsAmbientCredentials reports whether provider can use ambient credentials from the Coder server instead of an explicit API key.

(provider string)

Source from the content-addressed store, hash-verified

81// ambient credentials from the Coder server instead of an explicit
82// API key.
83func ProviderAllowsAmbientCredentials(provider string) bool {
84 return NormalizeProvider(provider) == fantasybedrock.Name
85}
86
87// InlineImageCapBytes returns the per-image byte cap for inline
88// image parts, or (0, false) when no documented cap applies.

Callers 3

userCanUseProviderKeysFunction · 0.92
ModelFromConfigFunction · 0.85

Calls 1

NormalizeProviderFunction · 0.85

Tested by

no test coverage detected