Merge pull request #1165 from xinnan-tech/hot-fix

fix:intent_llm的functions也需要返回成数组
This commit is contained in:
欣南科技
2025-05-09 16:39:32 +08:00
committed by GitHub
@@ -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("\\;");