pi-mono/packages/coding-agent/src
Milosz Jankiewicz 70e878d4cf
feat(ai): route xAI models through Responses and default to Grok 4.6 (#8124)
* feat(ai): route xAI models through Responses and default to Grok 4.6

Send built-in xAI catalog models through the Responses API with
store: false and include reasoning.encrypted_content so encrypted
reasoning is requested and replayed, including future models.dev
additions. Thinking levels come from models.dev reasoning_options
(grok-4.6 exposes xhigh); models without verified options
(grok-build-0.1) keep reasoning always on and never send unsupported
"none"/"minimal" efforts. Narrow the xAI provider to the Responses API,
send pi's runtime User-Agent on xAI requests for provider-side
attribution, and make Grok 4.6 the default xAI model.

* fix(ai): drop duplicate xAI encrypted-reasoning tests

Azure already covers the shared replay path; keep the xAI-specific include-without-effort case next to the existing request tests.

---------

Co-authored-by: Jaaneek <Jaaneek@users.noreply.github.com>
2026-08-16 17:47:38 +02:00
..
bun fix(coding-agent): bundle OAuth flows in Bun binaries 2026-07-16 15:36:16 +02:00
cli fix(coding-agent): use APP_NAME in user-facing messages (#8067) 2026-08-14 11:26:20 +02:00
client fix: replace session summaries with durable metadata (#7708) 2026-08-06 13:09:02 +03:00
core feat(ai): route xAI models through Responses and default to Grok 4.6 (#8124) 2026-08-16 17:47:38 +02:00
extensions fix(coding-agent): make model refresh cancellation caller-owned 2026-08-04 00:03:52 +02:00
modes fix(tui): route selection copy through the host clipboard (#8110) 2026-08-14 11:46:46 +02:00
server feat(ai): add strict tool schema conversion 2026-08-11 12:06:33 +02:00
utils fix(coding-agent): show managed-tool startup status in TUI 2026-08-13 15:54:34 +02:00
cli.ts feat(coding-agent): set AI_AGENT environment variable (#7493) 2026-08-03 13:45:32 +02:00
config.ts fix(coding-agent): install checked pi update version 2026-06-21 14:46:07 +02:00
index.ts feat(coding-agent): configure fullscreen exit output 2026-08-07 18:30:28 +02:00
main.ts fix(coding-agent): use APP_NAME in user-facing messages (#8067) 2026-08-14 11:26:20 +02:00
migrations.ts fix(coding-agent): treat uppercase config values as literals 2026-06-13 21:24:22 +02:00
package-manager-cli.ts fix(coding-agent): use APP_NAME in user-facing messages (#8067) 2026-08-14 11:26:20 +02:00
rpc-entry.ts feat(coding-agent): set AI_AGENT environment variable (#7493) 2026-08-03 13:45:32 +02:00