feat: replace Tools param with Function param for OpenAI chat API

This commit is contained in:
RockYang
2024-03-11 14:09:19 +08:00
parent 9f59a18756
commit 316636f83c
9 changed files with 52 additions and 50 deletions

View File

@@ -58,7 +58,7 @@ var Model2URL = map[string]string{
// 科大讯飞消息发送实现
func (h *ChatHandler) sendXunFeiMessage(
chatCtx []interface{},
chatCtx []types.Message,
req types.ApiRequest,
userVo vo.User,
ctx context.Context,