mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-24 04:19:48 +01:00
fix:intent_llm的functions也需要返回成数组
This commit is contained in:
parent
31328e092e
commit
3a5bbe32b9
1 changed files with 2 additions and 1 deletions
|
|
@ -257,7 +257,8 @@ public class ConfigServiceImpl implements ConfigService {
|
|||
if (intentLLMModelId != null && intentLLMModelId.equals(llmModelId)) {
|
||||
intentLLMModelId = null;
|
||||
}
|
||||
} else if ("function_call".equals(map.get("type"))) {
|
||||
}
|
||||
if (map.get("functions") != null) {
|
||||
String functionStr = (String) map.get("functions");
|
||||
if (StringUtils.isNotBlank(functionStr)) {
|
||||
String[] functions = functionStr.split("\\;");
|
||||
|
|
|
|||
Loading…
Reference in a new issue