diff --git a/jcommon/ai/m78/src/main/java/run.mone.m78.client/bot/BotHttpClient.java b/jcommon/ai/m78/src/main/java/run.mone.m78.client/bot/BotHttpClient.java index 9babcd9dc..6f5178d1d 100644 --- a/jcommon/ai/m78/src/main/java/run.mone.m78.client/bot/BotHttpClient.java +++ b/jcommon/ai/m78/src/main/java/run.mone.m78.client/bot/BotHttpClient.java @@ -231,7 +231,7 @@ public static BotHttpClient.Builder builder() { public static final class Builder { private String name = ClientType.BOT_HTTP.getTypeName(); - private String url = "https://mone.test.mi.com/open-apis/ai-plugin-new/feature/router/probot/query"; + private String url = ""; private String token; private String model; diff --git a/jcommon/hive/src/main/java/run/mone/hive/llm/BotHttpBridge.java b/jcommon/hive/src/main/java/run/mone/hive/llm/BotHttpBridge.java index 39626d018..7b426a9f7 100644 --- a/jcommon/hive/src/main/java/run/mone/hive/llm/BotHttpBridge.java +++ b/jcommon/hive/src/main/java/run/mone/hive/llm/BotHttpBridge.java @@ -11,9 +11,10 @@ public class BotHttpBridge implements BotBridge { private final String botId; private final String userName; - public BotHttpBridge(String token, String botId, String userName) { + public BotHttpBridge(String url, String token, String botId, String userName) { this.client = BotHttpClient.builder() .token(token) + .url(url) .build(); this.botId = botId; this.userName = userName; diff --git a/jcommon/hive/src/test/java/run/mone/hive/llm/LLMTest.java b/jcommon/hive/src/test/java/run/mone/hive/llm/LLMTest.java index 9f5e22800..5fd1044de 100644 --- a/jcommon/hive/src/test/java/run/mone/hive/llm/LLMTest.java +++ b/jcommon/hive/src/test/java/run/mone/hive/llm/LLMTest.java @@ -123,7 +123,8 @@ public void testChatWithBot() { llm.setBotBridge(new BotHttpBridge( "xxxxxxxxxx", "xxxxxxxxx", - "xxxxxx" + "xxxxxx", + "xxxxxxx" )); // 简单调用