mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-27 04:49:47 +01:00
commit
171892a894
1 changed files with 3 additions and 0 deletions
|
|
@ -341,6 +341,9 @@ public class AgentServiceImpl extends BaseServiceImpl<AgentDao, AgentEntity> imp
|
||||||
* @return T 匹配 : F 不匹配
|
* @return T 匹配 : F 不匹配
|
||||||
*/
|
*/
|
||||||
private boolean validateLLMIntentParams(String llmModelId, String intentModelId) {
|
private boolean validateLLMIntentParams(String llmModelId, String intentModelId) {
|
||||||
|
if (StringUtils.isBlank(llmModelId)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
ModelConfigEntity llmModelData = modelConfigService.selectById(llmModelId);
|
ModelConfigEntity llmModelData = modelConfigService.selectById(llmModelId);
|
||||||
String type = llmModelData.getConfigJson().get("type").toString();
|
String type = llmModelData.getConfigJson().get("type").toString();
|
||||||
// 如果查询大语言模型是openai或者ollama,意图识别选参数都可以
|
// 如果查询大语言模型是openai或者ollama,意图识别选参数都可以
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue