Teknium
0c1217d01e
feat(xai): upgrade to Responses API, add TTS provider
Cherry-picked and trimmed from PR #10600 by Jaaneek.
- Switch xAI transport from openai_chat to codex_responses (Responses API)
- Add codex_responses detection for xAI in all runtime_provider resolution paths
- Add xAI api_mode detection in AIAgent.__init__ (provider name + URL auto-detect)
- Add extra_headers passthrough for codex_responses requests
- Add x-grok-conv-id session header for xAI prompt caching
- Add xAI reasoning support (encrypted_content include, no effort param)
- Move x-grok-conv-id from chat_completions path to codex_responses path
- Add xAI TTS provider (dedicated /v1/tts endpoint with Opus conversion)
- Add xAI provider aliases (grok, x-ai, x.ai) across auth, models, providers, auxiliary
- Trim xAI model list to agentic models (grok-4.20-reasoning, grok-4-1-fast-reasoning)
- Add XAI_API_KEY/XAI_BASE_URL to OPTIONAL_ENV_VARS
- Add xAI TTS config section, setup wizard entry, tools_config provider option
- Add shared xai_http.py helper for User-Agent string
Co-authored-by: Jaaneek <Jaaneek@users.noreply.github.com>
2026-04-16 02:24:08 -07:00
..
2026-04-13 11:52:09 -07:00
2026-04-15 17:34:15 -07:00
2026-04-16 02:24:08 -07:00
2026-04-13 04:46:13 -07:00
2026-04-13 16:32:04 -07:00
2026-04-14 16:11:37 -07:00
2026-04-12 16:40:37 -07:00
2026-04-13 16:32:04 -07:00
2026-04-10 21:15:47 -07:00
2026-03-29 20:10:00 -07:00
2026-03-30 17:07:21 -07:00
2026-04-15 19:53:11 -07:00
2026-04-14 10:45:42 -07:00
2026-04-16 02:24:08 -07:00
2026-04-13 05:12:36 -07:00
2026-04-07 22:49:01 -07:00
2026-04-11 17:16:06 -07:00
2026-04-15 13:40:27 -07:00
2026-03-26 01:34:27 -07:00
2026-04-15 16:17:17 -07:00
2026-04-14 00:11:49 -07:00
2026-04-14 20:20:31 -07:00
2026-04-15 17:07:22 -07:00
2026-04-11 17:23:36 -07:00
2026-04-16 02:24:08 -07:00
2026-04-11 15:34:57 -07:00
2026-04-15 14:25:40 -07:00
2026-04-16 02:22:09 -07:00
2026-04-16 01:16:14 -07:00
2026-04-16 02:24:08 -07:00
2026-04-16 02:24:08 -07:00
2026-03-25 19:47:58 -07:00
2026-04-14 00:11:49 -07:00
2026-04-10 19:15:50 -07:00
2026-04-15 22:23:01 -07:00
2026-04-12 12:22:34 -07:00
2026-04-16 02:24:08 -07:00
2026-04-16 02:24:08 -07:00
2026-04-16 02:24:08 -07:00
2026-04-13 16:32:04 -07:00
2026-04-12 16:39:04 -07:00
2026-04-13 23:51:21 -07:00
2026-04-14 00:11:49 -07:00
2026-04-13 16:32:04 -07:00
2026-04-16 02:24:08 -07:00
2026-04-13 16:32:04 -07:00
2026-04-14 15:41:30 -07:00
2026-04-07 10:40:34 -07:00