You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gptel-openai: Refine reasoning block detection in stream parser
* gptel-openai.el (gptel-curl--parse-stream): Previously the
stream parser assumed that all streaming chunks in a response from
a streaming model would have the :reasoning field, even if its
value was null. Post-reasoning content blocks would then have
a (possibly null) :reasoning field and a non-null :content field.
Reasoning block processing depended partially on this assumption.
Use only the value of :reasoning-block instead. This
implies a little extra work on the very first streaming chunk, but
makes fewer assumptions about the presence of both :reasoning and
:content fields in all future chunks. (#901)
0 commit comments