Skip to content

fix(ai): fail malformed converse output - #46193

Open
rekram1-node wants to merge 1 commit into
v2from
converse-malformed-stop
Open

fix(ai): fail malformed converse output#46193
rekram1-node wants to merge 1 commit into
v2from
converse-malformed-stop

Conversation

@rekram1-node

Copy link
Copy Markdown
Collaborator

Summary

  • fail Bedrock Converse streams instead of emitting a successful finish for malformed_model_output and malformed_tool_use
  • surface an InvalidProviderOutput error with the raw stop reason and triggering event frame
  • preserve model_context_window_exceeded as a normal length finish

Testing

  • bun test test/provider/bedrock-converse.test.ts
  • bun typecheck
  • Prettier and oxlint on the changed files
  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant