Skip to content

Commit

Permalink
fix: remove default url
Browse files Browse the repository at this point in the history
  • Loading branch information
sadadw1 committed Jan 14, 2025
1 parent 7675fb1 commit 87304cc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion jcommon/hive/src/test/java/run/mone/hive/llm/LLMTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ public void testChatWithBot() {
llm.setBotBridge(new BotHttpBridge(
"xxxxxxxxxx",
"xxxxxxxxx",
"xxxxxx"
"xxxxxx",
"xxxxxxx"
));

// 简单调用
Expand Down

0 comments on commit 87304cc

Please sign in to comment.