Skip to content

Conversation

@CyrilPeng
Copy link

@CyrilPeng CyrilPeng commented Jan 20, 2026

Thank you for your project, it has been very helpful to me!

I am using the Claude-opus-4-5-thinking model, but my service provider has converted it into an OpenAI-compatible mode. I used this project for proxying, but I found that the current project doesn't handle the chain of thought very well, leading to errors in AI clients. So I made some modifications to prevent Claude model chain of thought validation failures.

Previously, the "text" field was used, which caused validation failures and errors, even though clients could see the content. This was because the content was placed in a box named "text" instead of "thinking". Now, Claude-related models can correctly return the chain of thought.

I'm not sure if these modifications will affect native OpenAI-compatible models, but for Claude models, the chain of thought content can now be correctly returned.

I hope this finding is helpful to you.

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