fix(provider): add support for jp. prefix in Amazon Bedrock cross-region inference profiles (#6916)
parent
0917991361
commit
bf9ee32d4a
|
|
@ -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…
Reference in New Issue