添加爬虫搜索

This commit is contained in:
RockYang
2025-04-08 15:34:17 +08:00
parent 04caf92702
commit 1c1ddf76fb
8 changed files with 684 additions and 19 deletions

View File

@@ -186,7 +186,7 @@ func (h *ChatHandler) sendOpenAiMessage(
}
if toolCall { // 调用函数完成任务
params := make(map[string]interface{})
params := make(map[string]any)
_ = utils.JsonDecode(strings.Join(arguments, ""), &params)
logger.Debugf("函数名称: %s, 函数参数:%s", function.Name, params)
params["user_id"] = userVo.Id