(providerType codersdk.AIProviderType)
| 39 | } |
| 40 | |
| 41 | func 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 | |
| 52 | func aiProviderDisplayName(providerType codersdk.AIProviderType) string { |
| 53 | switch providerType { |
no outgoing calls
no test coverage detected