| 52 | } |
| 53 | |
| 54 | function getProviderDescription(provider: ResolvedProviderConfig): string { |
| 55 | switch (provider.type) { |
| 56 | case 'firstParty': |
| 57 | return 'Anthropic direct API and Claude account auth' |
| 58 | case 'github-models': |
| 59 | return 'GitHub Models via gh auth token or GITHUB_TOKEN' |
| 60 | case 'github-copilot': |
| 61 | return 'GitHub Copilot account-backed Claude models' |
| 62 | case 'bedrock': |
| 63 | return 'Amazon Bedrock credentials from your AWS environment' |
| 64 | case 'vertex': |
| 65 | return 'Google Vertex AI project and credentials' |
| 66 | case 'foundry': |
| 67 | return 'Azure AI Foundry resource and credentials' |
| 68 | case 'anthropic-compatible': |
| 69 | return provider.baseURL |
| 70 | ? `Custom Anthropic-compatible provider · ${provider.baseURL}` |
| 71 | : 'Custom Anthropic-compatible provider' |
| 72 | case 'openai-compatible': |
| 73 | return provider.baseURL |
| 74 | ? `Custom OpenAI-compatible provider · ${provider.baseURL}` |
| 75 | : 'Custom OpenAI-compatible provider' |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | export function ProviderPicker({ |
| 80 | initial, |