From 126c3b3c1727fb701fe3d7b264cfedff79ce5d81 Mon Sep 17 00:00:00 2001 From: Dennis Thiessen Date: Sat, 13 Jun 2026 12:42:04 +0200 Subject: [PATCH] Add DeepSeek/xAI/OpenAI-compatible sentiment providers; custom dark dropdown MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Providers (admin-switchable, no redeploy): - DeepSeek and any OpenAI-compatible endpoint (OpenRouter, Together, Groq, local Ollama) via a generic Chat Completions adapter + base_url - xAI Grok with Live Search (search_parameters web+X, citations) — grounded tier alongside OpenAI and Gemini - DeepSeek / generic compatible endpoints are ungrounded (no web search); UI shows an amber warning and labels each provider's grounding - Optional env fallbacks DEEPSEEK_API_KEY / XAI_API_KEY UI: replace native onProviderChange(e.target.value)} className="w-full !py-2"> - {data.valid_providers.map((p) => ( - - ))} - + + {needsBaseUrl && ( + + )} + + {!isGrounded && ( +
+ ⚠ No live web search. This provider scores sentiment from the model's training knowledge, + not current news — cheaper, but not real-time. OpenAI and Gemini are grounded in live search. +
+ )} +