feat: 支持 xAI 网络搜索

This commit is contained in:
RedwindA
2025-07-12 02:22:40 +08:00
parent cf711d55a5
commit 22a0ed0ee2
3 changed files with 12 additions and 0 deletions

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"`