Fix xAI sentiment: use Agent Tools web_search (Live Search deprecated)
Deploy / lint (push) Successful in 5s
Deploy / test (push) Successful in 31s
Deploy / deploy (push) Successful in 23s

xAI returned 410 — search_parameters/Live Search is retired. Route xAI
through the Responses API web_search tool instead (same path as OpenAI):
- OpenAISentimentProvider parametrized with base_url / tool_type / source
- xAI builds it against https://api.x.ai/v1 with the web_search tool
- Drop the dead Live Search code from the generic compatible provider
- Frontend label: "xAI Grok — web search"

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-06-13 14:30:45 +02:00
parent 126c3b3c17
commit ffb609d38f
5 changed files with 45 additions and 69 deletions
@@ -18,7 +18,7 @@ const PROVIDER_LABELS: Record<string, string> = {
openai: 'OpenAI — web search',
gemini: 'Google Gemini — web search',
deepseek: 'DeepSeek — cheap, no web search',
xai: 'xAI Grok — Live Search',
xai: 'xAI Grok — web search',
openai_compatible: 'OpenAI-compatible — custom URL',
};