feat: 支持 xAI 网络搜索

This commit is contained in:
RedwindA committed 2025-07-12 02:22:40 +08:00
1 parent c96bdfbe99
commit 98696526d4
3 files changed
+12

No files matched your search

+1
View File
@@ -55,6 +55,7 @@ type GeneralOpenAIRequest struct {
EnableThinking any `json:"enable_thinking,omitempty"` // ali
THINKING json.RawMessage `json:"thinking,omitempty"` // doubao
ExtraBody json.RawMessage `json:"extra_body,omitempty"`
SearchParameters any `json:"search_parameters,omitempty"` //xai
WebSearchOptions *WebSearchOptions `json:"web_search_options,omitempty"`
// OpenRouter Params
Usage json.RawMessage `json:"usage,omitempty"`