Skip to content

Commit bb19fb6

Browse files
committed
feat: enable DeepSeek web search via search_enabled field
Add search_enabled: true to the DeepSeek completion payload so that the model can perform web searches for real-time information (weather, news, etc.) just like the DeepSeek web interface. Signed-off-by: hanzhijian <hanzhijian@zepp.com>
1 parent 4c0c2ad commit bb19fb6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

backend/internal/service/openai_gateway_deepseek.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ func buildDeepSeekPayload(body []byte, sessionID string) map[string]any {
334334
"model": model,
335335
"stream": stream,
336336
"ref_file_ids": []any{},
337+
"search_enabled": true,
337338
}
338339

339340
if temp, ok := payload["temperature"]; ok {

0 commit comments

Comments
 (0)