Skip to content

Commit

Permalink
Merge pull request #7 from SkywardAI/fix-kb
Browse files Browse the repository at this point in the history
fix the knowledge region error
  • Loading branch information
cbh778899 authored Nov 13, 2024
2 parents 888df89 + 09c63b8 commit a635ffc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions actions/bedrock.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,8 @@ async function invokeKnowledgeBase(message) {
* Initialize or Re-initialize the bedrock runtime client in given region.
*/
export function rebuildBedrockClient() {
const region = process.env.REGION || 'ap-southeast-2'
client = new BedrockRuntimeClient({region})
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'})
}

/**
Expand Down

0 comments on commit a635ffc

Please sign in to comment.