mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-06 00:12:11 +00:00
fix(provider): add support for jp. prefix in Amazon Bedrock cross-region inference profiles (#6916)
This commit is contained in:
parent
0917991361
commit
bf9ee32d4a
1 changed files with 2 additions and 2 deletions
|
|
@ -217,8 +217,8 @@ export namespace Provider {
|
|||
autoload: true,
|
||||
options: providerOptions,
|
||||
async getModel(sdk: any, modelID: string, options?: Record<string, any>) {
|
||||
// Skip region prefixing if model already has global prefix
|
||||
if (modelID.startsWith("global.")) {
|
||||
// Skip region prefixing if model already has a cross-region inference profile prefix
|
||||
if (modelID.startsWith("global.") || modelID.startsWith("jp.")) {
|
||||
return sdk.languageModel(modelID)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue