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

Function defaultIntegrationAIProviderBaseURL

coderd/x/chatd/integration_test.go:41–50  ·  view source on GitHub ↗
(providerType codersdk.AIProviderType)

Source from the content-addressed store, hash-verified

39}
40
41func defaultIntegrationAIProviderBaseURL(providerType codersdk.AIProviderType) string {
42 switch providerType {
43 case codersdk.AIProviderTypeAnthropic:
44 return "https://api.anthropic.com"
45 case codersdk.AIProviderTypeOpenAI:
46 return "https://api.openai.com/v1"
47 default:
48 return "https://api.example.com"
49 }
50}
51
52func aiProviderDisplayName(providerType codersdk.AIProviderType) string {
53 switch providerType {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected