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

Function isZeroChatModelProviderOptions

coderd/exp_chats.go:7502–7513  ·  view source on GitHub ↗
(options *codersdk.ChatModelProviderOptions)

Source from the content-addressed store, hash-verified

7500}
7501
7502func isZeroChatModelProviderOptions(options *codersdk.ChatModelProviderOptions) bool {
7503 if options == nil {
7504 return true
7505 }
7506
7507 return options.OpenAI == nil &&
7508 options.Anthropic == nil &&
7509 options.Google == nil &&
7510 options.OpenAICompat == nil &&
7511 options.OpenRouter == nil &&
7512 options.Vercel == nil
7513}
7514
7515const maxChatProviderAPIKeySize = 10240 // 10 KB
7516

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected