Remove xAI web search capability (#5255)
With web search on, the API now returns 410 Gone.
This commit is contained in:
+1
-1
@@ -1982,7 +1982,7 @@
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="range-block" data-source="makersuite,vertexai,aimlapi,openrouter,claude,xai,electronhub,chutes,nanogpt">
|
||||
<div class="range-block" data-source="makersuite,vertexai,aimlapi,openrouter,claude,electronhub,chutes,nanogpt">
|
||||
<label for="openai_enable_web_search" class="checkbox_label flexWrap widthFreeExpand">
|
||||
<input id="openai_enable_web_search" type="checkbox" />
|
||||
<span data-i18n="Enable web search">Enable web search</span>
|
||||
|
||||
@@ -1154,17 +1154,6 @@ async function sendXaiRequest(request, response) {
|
||||
bodyParams['reasoning_effort'] = request.body.reasoning_effort === 'high' ? 'high' : 'low';
|
||||
}
|
||||
|
||||
if (request.body.enable_web_search) {
|
||||
bodyParams['search_parameters'] = {
|
||||
mode: 'on',
|
||||
sources: [
|
||||
{ type: 'web', safe_search: false },
|
||||
{ type: 'news', safe_search: false },
|
||||
{ type: 'x' },
|
||||
],
|
||||
};
|
||||
}
|
||||
|
||||
if (request.body.json_schema) {
|
||||
bodyParams['response_format'] = {
|
||||
type: 'json_schema',
|
||||
|
||||
Reference in New Issue
Block a user