We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 888df89 + 09c63b8 commit a635ffcCopy full SHA for a635ffc
actions/bedrock.js
@@ -53,9 +53,8 @@ async function invokeKnowledgeBase(message) {
53
* Initialize or Re-initialize the bedrock runtime client in given region.
54
*/
55
export function rebuildBedrockClient() {
56
- const region = process.env.REGION || 'ap-southeast-2'
57
- client = new BedrockRuntimeClient({region})
58
- agent_client = new BedrockAgentRuntimeClient({region})
+ client = new BedrockRuntimeClient({region: process.env.REGION || 'ap-southeast-2'})
+ agent_client = new BedrockAgentRuntimeClient({region: process.env.KB_REGION || 'ap-southeast-2'})
59
}
60
61
/**
0 commit comments