Repository navigation
feat(vertex-openai): add 13 partner-model mappings #2343
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
Changes from all commits
b0d6d3b
6ae0ed5
5ff36b8
a37b662
10ae27d
e080c8b
4804132
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 |
|---|---|---|
|
|
@@ -511,6 +511,20 @@ export const alibabaModels = [ | |
| tools: true, | ||
| jsonOutput: true, | ||
| }, | ||
| { | ||
| providerId: "vertex-openai", | ||
| externalId: "qwen/qwen3-235b-a22b-instruct-2507-maas", | ||
| inputPrice: "0.22e-6", | ||
| outputPrice: "0.88e-6", | ||
| requestPrice: "0", | ||
| contextSize: 262144, | ||
| maxOutput: 32768, | ||
|
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.
When callers send Useful? React with 👍 / 👎. |
||
| reasoning: false, | ||
| streaming: true, | ||
| vision: false, | ||
| tools: true, | ||
| jsonOutput: true, | ||
| }, | ||
| ], | ||
| }, | ||
| { | ||
|
|
@@ -897,6 +911,20 @@ export const alibabaModels = [ | |
| tools: true, | ||
| jsonOutput: true, | ||
| }, | ||
| { | ||
| providerId: "vertex-openai", | ||
| externalId: "qwen/qwen3-coder-480b-a35b-instruct-maas", | ||
| inputPrice: "0.22e-6", | ||
| cachedInputPrice: "0.022e-6", | ||
| outputPrice: "1.8e-6", | ||
| requestPrice: "0", | ||
| contextSize: 262144, | ||
| maxOutput: 65536, | ||
| streaming: true, | ||
| vision: false, | ||
| tools: true, | ||
| jsonOutput: true, | ||
| }, | ||
| ], | ||
| }, | ||
| { | ||
|
|
@@ -1138,6 +1166,32 @@ export const alibabaModels = [ | |
| "tools", | ||
| ], | ||
| }, | ||
| { | ||
| providerId: "vertex-openai", | ||
| externalId: "qwen/qwen3-next-80b-a3b-thinking-maas", | ||
| inputPrice: "0.15e-6", | ||
| outputPrice: "1.2e-6", | ||
| requestPrice: "0", | ||
| contextSize: 131072, | ||
| maxOutput: 32768, | ||
|
Comment on lines
+1175
to
+1176
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.
For Useful? React with 👍 / 👎. |
||
| reasoning: true, | ||
| reasoningOutput: "omit", | ||
| streaming: true, | ||
| vision: false, | ||
| tools: true, | ||
| jsonOutput: false, | ||
| supportedParameters: [ | ||
| "temperature", | ||
| "max_tokens", | ||
| "top_p", | ||
| "frequency_penalty", | ||
| "presence_penalty", | ||
| "stop", | ||
| "stream", | ||
| "response_format", | ||
| "tools", | ||
| ], | ||
| }, | ||
| ], | ||
| }, | ||
| { | ||
|
|
@@ -1174,6 +1228,19 @@ export const alibabaModels = [ | |
| tools: true, | ||
| jsonOutput: true, | ||
| }, | ||
| { | ||
| providerId: "vertex-openai", | ||
| externalId: "qwen/qwen3-next-80b-a3b-instruct-maas", | ||
| inputPrice: "0.15e-6", | ||
| outputPrice: "1.2e-6", | ||
| requestPrice: "0", | ||
| contextSize: 131072, | ||
| maxOutput: 32768, | ||
| streaming: true, | ||
| vision: false, | ||
| tools: true, | ||
| jsonOutput: true, | ||
| }, | ||
| ], | ||
| }, | ||
| { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -417,6 +417,14 @@ export const providers: ProviderDefinition[] = [ | |
| statusPageUrl: "https://status.cloud.google.com", | ||
| announcement: null, | ||
| priority: 0.2, | ||
| regionConfig: { | ||
|
steebchen marked this conversation as resolved.
|
||
| optionsKey: "vertex_openai_region", | ||
|
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.
This change adds Useful? React with 👍 / 👎. |
||
| defaultRegion: "global", | ||
|
Comment on lines
+420
to
+422
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.
Adding Useful? React with 👍 / 👎. |
||
| regions: [{ id: "global", label: "Global (default)" }], | ||
| endpointMap: { | ||
| global: "https://aiplatform.googleapis.com", | ||
| }, | ||
| }, | ||
| termsUrl: "https://cloud.google.com/terms/service-terms", | ||
| privacyPolicyUrl: "https://cloud.google.com/terms/data-processing-addendum", | ||
| headquarters: "US", | ||
|
|
||
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.
When a BYOK/hybrid
vertex-openaikey is configured withvertex_openai_region: "us-west2"to use the new DeepSeek V3.1 mapping,chat.tsintentionally leavesusedRegionundefined for regionless/global mappings such as the existing Grok/Qwen/Kimi entries, but this fallback still applies the key option inside endpoint construction. Those requests are then treated as regionless for routing/logging/validation while the URL path is built as/locations/us-west2(with the host already chosen from the undefinedregion), so global-only Vertex OpenAI mappings can be sent to the wrong regional endpoint. Only apply the key option after the selected mapping has been resolved to that compatible region, or promote and validate the region consistently before building the URL.Useful? React with 👍 / 👎.