feat(catalog): replay xAI encrypted reasoning on later turns

Stop stripping type=reasoning history for xai and xai-oauth so
encrypted_content from include is sent back on the next Responses request.
This commit is contained in:
Yang Yang
2026-08-02 20:54:53 -07:00
parent c228dea58b
commit 651f20957b
8 changed files with 107 additions and 20 deletions
+2 -2
View File
@@ -241,8 +241,8 @@ Both the paid API-key provider (`xai` / `XAI_API_KEY`) and SuperGrok OAuth
(`xai-oauth`) chat over `https://api.x.ai/v1/responses`. Keep these independent:
- omit `reasoning.effort`
- include `reasoning.encrypted_content` (request `include`) vs replay history
- filter reasoning-history wrappers
- include `reasoning.encrypted_content` on the request
- replay encrypted reasoning items on later turns
Some models reject only one of those fields; do not collapse them into one
"Grok mode" branch.