Skip to content

Commit

Permalink
♻️ fix: remove useless condition check
Browse files Browse the repository at this point in the history
  • Loading branch information
danielglh committed Mar 13, 2024
1 parent 2a1660a commit 64113be
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/libs/agent-runtime/bedrock/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,7 @@ export class LobeBedrockAI implements LobeRuntimeAI {
const bedrockResponse = await this.client.send(command);

// Convert the response into a friendly text-stream
const stream = AWSBedrockStream(bedrockResponse, options?.callback, (chunk) => {
if (chunk.type === 'content_block_delta') {
return chunk.delta?.text;
}
});
const stream = AWSBedrockStream(bedrockResponse, options?.callback, (chunk) => chunk.delta?.text);

const [debug, output] = stream.tee();

Expand Down

0 comments on commit 64113be

Please sign in to comment.