From f83894c83f480fbb06150dddf6dca11e1022ae7c Mon Sep 17 00:00:00 2001 From: wagxuebing <65780532+lynnssb@users.noreply.github.com> Date: Wed, 12 Jun 2024 23:12:58 +0800 Subject: [PATCH] fix: xunfei interface call 4001 error (#1499) Co-authored-by: lynnssb --- relay/adaptor/xunfei/model.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relay/adaptor/xunfei/model.go b/relay/adaptor/xunfei/model.go index 97a43154..5ee17cb0 100644 --- a/relay/adaptor/xunfei/model.go +++ b/relay/adaptor/xunfei/model.go @@ -26,7 +26,7 @@ type ChatRequest struct { Message struct { Text []Message `json:"text"` } `json:"message"` - Functions struct { + Functions *struct { Text []model.Function `json:"text,omitempty"` } `json:"functions,omitempty"` } `json:"payload"`