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-02-21 22:31:43 -08:00
2026-04-15 16:17:17 -07:00
2026-04-16 02:24:08 -07:00
2026-04-15 16:17:17 -07:00
2026-04-14 22:38:17 -07:00
2026-04-13 16:32:04 -07:00
2026-04-10 13:05:01 -07:00
2026-04-06 01:47:57 -07:00
2026-04-15 15:04:14 -07:00
2026-04-16 02:22:19 -07:00
2026-04-15 16:17:17 -07:00
2026-04-13 16:32:04 -07:00
2026-04-10 21:16:53 -07:00
2026-04-15 19:12:19 -07:00
2026-04-15 11:28:45 -07:00
2026-04-16 02:22:09 -07:00
2026-04-16 02:22:09 -07:00
2026-04-15 16:31:48 -07:00
2026-04-15 17:54:13 -07:00
2026-03-21 16:54:43 -07:00
2026-04-13 16:32:04 -07:00
2026-04-15 16:08:52 -07:00
2026-04-08 00:41:36 -07:00
2026-04-15 17:22:55 -07:00
2026-04-14 10:42:58 -07:00
2026-04-10 05:33:48 -07:00
2026-04-09 03:10:30 -07:00
2026-04-12 04:17:18 -07:00
2026-02-21 22:31:43 -08:00
2026-04-15 16:17:17 -07:00