Skip to content

Conversation

@paychex-inder
Copy link
Collaborator

When switching AI providers mid-conversation, tool call content from the previous provider can cause errors. This adds filtering to:

  • Remove tool_call content types from different endpoints
  • Filter text parts that reference tool_call_ids
  • Exclude messages that become empty after filtering

Prevents 'tool_call_id not found' errors when switching providers.

When switching AI providers mid-conversation, tool call content from
the previous provider can cause errors. This adds filtering to:

- Remove tool_call content types from different endpoints
- Filter text parts that reference tool_call_ids
- Exclude messages that become empty after filtering

Prevents 'tool_call_id not found' errors when switching providers.

Co-authored-by: Gabriel Rosendo <gmarcelino-paychex@users.noreply.github.com>
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