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

@@ -31,7 +31,7 @@ type qWenResp struct {
// 通义千问消息发送实现
func (h *ChatHandler) sendQWenMessage(
chatCtx []interface{},
chatCtx []types.Message,
req types.ApiRequest,
userVo vo.User,
ctx context.Context,