mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-11 03:58:14 +00:00
[fix][chat]Model provider is case sensitive.#1739
This commit is contained in:
@@ -25,7 +25,7 @@ public class ChatModelParameters {
|
||||
"", "string", MODULE_NAME, null, getModelNameDependency());
|
||||
|
||||
public static final Parameter CHAT_MODEL_API_KEY =
|
||||
new Parameter("apiKey", ModelProvider.DEMO_CHAT_MODEL.getApiKey(), "ApiKey", "",
|
||||
new Parameter("apiKey", "", "ApiKey", "",
|
||||
"password", MODULE_NAME, null, getApiKeyDependency());
|
||||
|
||||
public static final Parameter CHAT_MODEL_ENDPOINT = new Parameter("endpoint", "llama_2_70b",
|
||||
|
||||
@@ -123,7 +123,7 @@ public class AgentServiceImpl extends ServiceImpl<AgentDOMapper, AgentDO> implem
|
||||
}
|
||||
try {
|
||||
chatQueryService.parseAndExecute(ChatParseReq.builder().chatId(-1)
|
||||
.agentId(agent.getId()).queryText(example).build());
|
||||
.agentId(agent.getId()).queryText(example).user(User.getDefaultUser()).build());
|
||||
} catch (Exception e) {
|
||||
log.warn("agent:{} example execute failed:{}", agent.getName(), example);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user