Skip to content

Commit c7b9fd5

Browse files
committed
♻️ fix: remove useless condition check
1 parent 4f0928a commit c7b9fd5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/libs/agent-runtime/bedrock/index.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,7 @@ export class LobeBedrockAI implements LobeRuntimeAI {
7979
const bedrockResponse = await this.client.send(command);
8080

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

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

0 commit comments

Comments
 (0)