Commit b447fc7f authored by yangyw's avatar yangyw

hotfix:修复错误

parent 9f0dbed9
HELP.md HELP.md
target/ target/**
!.mvn/wrapper/ !.mvn/wrapper/
!.mvn/wrapper/maven-wrapper.jar !.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/ !**/src/main/**/target/
......
...@@ -60,7 +60,7 @@ public class AiPlatformExtensionService { ...@@ -60,7 +60,7 @@ public class AiPlatformExtensionService {
inputs.put("scene", "single_evaluate"); inputs.put("scene", "single_evaluate");
inputs.put("business_id", String.valueOf(businessId)); inputs.put("business_id", String.valueOf(businessId));
JSONObject param = new JSONObject(); JSONObject param = new JSONObject();
param.put("query", businessId); param.put("query", String.valueOf(businessId));
param.put("inputs", inputs); param.put("inputs", inputs);
param.put("response_mode", "blocking"); param.put("response_mode", "blocking");
param.put("conversation_id", ""); param.put("conversation_id", "");
...@@ -102,7 +102,7 @@ public class AiPlatformExtensionService { ...@@ -102,7 +102,7 @@ public class AiPlatformExtensionService {
inputs.put("scene", "single_qa_score"); inputs.put("scene", "single_qa_score");
inputs.put("business_id", String.valueOf(businessId)); inputs.put("business_id", String.valueOf(businessId));
JSONObject param = new JSONObject(); JSONObject param = new JSONObject();
param.put("query", businessId); param.put("query", String.valueOf(businessId));
param.put("inputs", inputs); param.put("inputs", inputs);
param.put("response_mode", "blocking"); param.put("response_mode", "blocking");
param.put("conversation_id", ""); param.put("conversation_id", "");
......
...@@ -1677,7 +1677,7 @@ public class AppExamineService { ...@@ -1677,7 +1677,7 @@ public class AppExamineService {
inputs.put("scene", "single_qa_score"); inputs.put("scene", "single_qa_score");
inputs.put("business_id", String.valueOf(businessId)); inputs.put("business_id", String.valueOf(businessId));
JSONObject param = new JSONObject(); JSONObject param = new JSONObject();
param.put("query", businessId); param.put("query", String.valueOf(businessId));
param.put("inputs", inputs); param.put("inputs", inputs);
param.put("response_mode", "streaming"); param.put("response_mode", "streaming");
param.put("conversation_id", ""); param.put("conversation_id", "");
......
...@@ -13,7 +13,6 @@ import java.util.HashMap; ...@@ -13,7 +13,6 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@SpringBootTest
@Profile("dev") @Profile("dev")
public class AIServiceTestUnit { public class AIServiceTestUnit {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment