Remove xAI web search capability (#5255) With web search on, the API now returns 410 Gone.

e834d3724b3dd1901cb603cc2f2b557efe282c3f

equal-l2 <eng.equall2@gmail.com>

Signed
2 files changed, +1 -12Showing whitespace changes
public/index.html+1 -1
@@ -1982,7 +1982,7 @@
19821982 </span>
19831983 </div>
19841984 </div>
19851985 <div class="range-block" data-source="makersuite,vertexai,aimlapi,openrouter,claude,xai,electronhub,chutes,nanogpt">
19861986 <label for="openai_enable_web_search" class="checkbox_label flexWrap widthFreeExpand">
19871987 <input id="openai_enable_web_search" type="checkbox" />
19881988 <span data-i18n="Enable web search">Enable web search</span>
src/endpoints/backends/chat-completions.js+0 -11
@@ -1154,17 +1154,6 @@ async function sendXaiRequest(request, response) {
11541154 bodyParams['reasoning_effort'] = request.body.reasoning_effort === 'high' ? 'high' : 'low';
11551155 }
11561156
1157- if (request.body.enable_web_search) {
1158- bodyParams['search_parameters'] = {
1159- mode: 'on',
1160- sources: [
1161- { type: 'web', safe_search: false },
1162- { type: 'news', safe_search: false },
1163- { type: 'x' },
1164- ],
1165- };
1166- }
1167-
11681157 if (request.body.json_schema) {
11691158 bodyParams['response_format'] = {
11701159 type: 'json_schema',