Skip to content

Commit a635ffc

Browse files
authored
Merge pull request #7 from SkywardAI/fix-kb
fix the knowledge region error
2 parents 888df89 + 09c63b8 commit a635ffc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

actions/bedrock.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,8 @@ async function invokeKnowledgeBase(message) {
5353
* Initialize or Re-initialize the bedrock runtime client in given region.
5454
*/
5555
export function rebuildBedrockClient() {
56-
const region = process.env.REGION || 'ap-southeast-2'
57-
client = new BedrockRuntimeClient({region})
58-
agent_client = new BedrockAgentRuntimeClient({region})
56+
client = new BedrockRuntimeClient({region: process.env.REGION || 'ap-southeast-2'})
57+
agent_client = new BedrockAgentRuntimeClient({region: process.env.KB_REGION || 'ap-southeast-2'})
5958
}
6059

6160
/**

0 commit comments

Comments
 (0)