Repository navigation
Replies: 1 comment
The difference is in my experience bigger than expected. I asked gpt 5.5 to implement |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hey @karthink ,
I wanted to get some feedback from you about the way reasoning is handled by gptel using Anthropic's API.
Currently, reasoning content from a previous turn is send back to the model as a normal assistant message and within a turn as a dedicated message of type thinking (given that
gptel-include-reasoningis not set to'ignore). For example:and on the next turn:
The API documentations state
As far as I understand, this is the case.
But a bit further down it is stated:
and my understanding from this and the examples given in the cookbook is that thinking messages should be send as dedicated
"type": "thinking"messages.So long story short, I gave it a try and introduced some modifications into gptel. At first together with Claude Code (because he should know about its API, right) but then I continued on my own pretty fast.
thinkingtype messages along with the signaturecontent_block_startand not incontent_block_deltalike the other two...) and all three seem to work.Example (using DeepSeek):
Before I add now the patch below, I wanted to ask you:
And here is the patch. Thank you very much for reading this!
All reactions