Skip to content

feat: Ignore reasoning items in chat completion converter #1005

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

liuzhongyu-eagle
Copy link

This change modifies the ChatCompletion converter to explicitly ignore items of type 'reasoning'. These items are internal to the agent's thought process and should not be sent to the language model as part of the conversation history.

A corresponding unit test has been added to ensure that these items are correctly filtered out.

This change modifies the ChatCompletion converter to explicitly ignore items of type 'reasoning'. These items are internal to the agent's thought process and should not be sent to the language model as part of the conversation history.

A corresponding unit test has been added to ensure that these items are correctly filtered out.
@liuzhongyu-eagle liuzhongyu-eagle deleted the fix/ignore-reasoning-item branch July 6, 2025 13:10
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