client icon indicating copy to clipboard operation
client copied to clipboard

feat: add reasoning_content field to chat completions response

Open rxrw opened this issue 9 months ago • 3 comments

What:

  • [ ] Bug Fix
  • [X] New Feature

Description:

Add support for the reasoning_content field in chat completions API responses. This field is added at the same level as content in both streaming and non-streaming requests. The field is marked as optional to handle cases where it's not present in the API response.

Related:

#517

rxrw avatar Mar 13 '25 09:03 rxrw

With the latest merges our pipeline should be runnable again. If you rebase we can see if this change will merge cleanly.

iBotPeaches avatar Apr 06 '25 20:04 iBotPeaches

When can this PR be merged

anhao avatar Jun 20 '25 03:06 anhao

When can this PR be merged

At the moment its decayed quite a bit with conflicts - so thats probably priority one, then a green pipeline as 2nd. Since its a non-OpenAI change as well it may take some thinking as this property then becomes exposed to all OpenAI implementations without careful filtering logic.

iBotPeaches avatar Jun 20 '25 11:06 iBotPeaches