Repository navigation
feat(providers): add Azure Foundry and Bedrock API-key connections #6032
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 4 commits
df86624
75c212a
f230577
02f255b
579da6b
b1b9121
3d7ca4b
bac2f46
0dc2f71
ba6cc69
5ac8b20
3eedada
5c89f7e
7b409a6
df579c3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1525,6 +1525,36 @@ const providerRegistry = { | |
| signupUrl: 'https://dash.cloudflare.com/profile/api-tokens', | ||
| catalogOrder: 33, | ||
| }, | ||
| 'azure-foundry': { | ||
| label: 'Azure AI Foundry', | ||
| baseUrl: '', | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P2: |
||
| authKind: 'api_key', | ||
| fallbackModels: [], | ||
| status: 'ready', | ||
| runtimeAdapter: { kind: 'openai-compatible', requireBaseUrl: true }, | ||
| modelDiscovery: { kind: 'protocol' }, | ||
| // Foundry endpoints are resource-specific and must be supplied by the user. | ||
| category: 'custom', | ||
| catalogGroup: 'api', | ||
| signupUrl: 'https://ai.azure.com/', | ||
| catalogOrder: 42, | ||
| }, | ||
| 'amazon-bedrock': { | ||
| label: 'Amazon Bedrock', | ||
| baseUrl: '', | ||
| authKind: 'api_key', | ||
| fallbackModels: [], | ||
| status: 'ready', | ||
| runtimeAdapter: { kind: 'openai-compatible', requireBaseUrl: true }, | ||
| // Bedrock's OpenAI-compatible endpoint and model-list availability vary | ||
| // by endpoint family and region. A custom endpoint remains user supplied. | ||
| modelDiscovery: { kind: 'protocol' }, | ||
| // Bedrock endpoint selection is region/account-specific and user supplied. | ||
| category: 'custom', | ||
| catalogGroup: 'api', | ||
| signupUrl: 'https://console.aws.amazon.com/bedrock/', | ||
| catalogOrder: 43, | ||
| }, | ||
| 'ollama-cloud': { | ||
| label: ollamaCloud.name, | ||
| baseUrl: ollamaCloud.api, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[P2] Advance the compatibility epoch when adding these wire-visible provider values
An epoch-212 client built before these entries can still connect to this epoch-212 Host, but connection.catalog.query responses now contain providerType values absent from the old registry. The unchanged decodeCatalogConnectionHeader delegates to core decodeProviderType and rejects the entire page with invalid_frame ("connection provider type is not registered"). The actual base decoder accepts a Custom control page but rejects both new provider pages, while the head decoder accepts all three. This is a wire compatibility change even without edits under src/protocol. Allocate a new epoch and cover the mixed-version case. Current main is 212; #5394/#5969 use 213 and #5548/#6051 use 214. 215 is currently free across the 188 open heads checked, but recheck before merging.