Skip to content

Commit

Permalink
fix(bedrock): In doGenerate make the reasoning be a reasoning part,…
Browse files Browse the repository at this point in the history
… not a text part
  • Loading branch information
Und3rf10w committed Feb 25, 2025
1 parent 476bfe4 commit 69c4dd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/amazon-bedrock/src/bedrock-chat-language-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ export class BedrockChatLanguageModel implements LanguageModelV1 {
warnings,
reasoning: response.output?.message?.reasoningContent
?.map(part => ({
type: 'text',
type: 'reasoning',
text: part?.reasoningText?.text,
signature: part?.reasoningText?.signature,
})),
Expand Down

0 comments on commit 69c4dd6

Please sign in to comment.