Browse Source

使用更高级的搜索方式,使其贴近豆包APP

zhangwl 1 month ago
parent
commit
c2fb71826d
1 changed files with 6 additions and 2 deletions
  1. 6 2
      src/main/java/com/zhongsou/dbai/service/DouBaoAgentService.java

+ 6 - 2
src/main/java/com/zhongsou/dbai/service/DouBaoAgentService.java

@@ -105,12 +105,16 @@ public class DouBaoAgentService {
         // 构造 tools
         JSONObject feature = new JSONObject();
         feature.put("ai_search", JSONObject.of(
-                "type", "enabled",
+                "type", "disabled",
                 "role_description", roleDescription
         ));
+        feature.put("reasoning_search", JSONObject.of(
+            "type", "enabled",
+            "role_description", roleDescription
+        ));
         feature.put("chat", JSONObject.of("type", "disabled"));
         feature.put("deep_chat", JSONObject.of("type", "disabled"));
-        feature.put("reasoning_search", JSONObject.of("type", "disabled"));
+
 
         JSONObject tool = new JSONObject();
         tool.put("type", "doubao_app");