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
fix(adapters): forward extra_body params and return reasoning_content properly (#75)
* fix(adapters): forward extra_body params and return reasoning_content properly
Request adapters had a KNOWN_FIELDS set that excluded recognized fields
(e.g. response_format, presence_penalty, seed) from extraParams passthrough,
but those fields were never mapped in parse() either — causing them to be
silently dropped when forwarding to upstream providers. Rename to MAPPED_FIELDS
containing only fields actually consumed by parse(), so all other fields
flow through extraParams to the upstream provider.
The response adapter for OpenAI Chat wrapped reasoning_content in <think>
tags inside the content field. This was originally only used for DB logging,
but was incorrectly carried over into client response serialization during
the adapter refactor (09a0ce9). Restore the original behavior: return
reasoning_content as a separate field for client responses, keep <think>
wrapping only for database storage.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* refactor: combine extractTextContent and extractReasoningContent into single pass
Merge two separate functions that iterated over the same content blocks
array into a single extractContent() function that returns both text and
reasoning in one pass.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments