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,
|
autoload: true,
|
||||||
options: providerOptions,
|
options: providerOptions,
|
||||||
async getModel(sdk: any, modelID: string, options?: Record<string, any>) {
|
async getModel(sdk: any, modelID: string, options?: Record<string, any>) {
|
||||||
// Skip region prefixing if model already has global prefix
|
// Skip region prefixing if model already has a cross-region inference profile prefix
|
||||||
if (modelID.startsWith("global.")) {
|
if (modelID.startsWith("global.") || modelID.startsWith("jp.")) {
|
||||||
return sdk.languageModel(modelID)
|
return sdk.languageModel(modelID)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue