fix: xunfei interface call 4001 error (#1499)

Co-authored-by: lynnssb <lynntobing@gmail.com>
This commit is contained in:
wagxuebing 2024-06-12 23:12:58 +08:00 committed by GitHub
parent e9981fff36
commit f83894c83f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,7 +26,7 @@ type ChatRequest struct {
Message struct { Message struct {
Text []Message `json:"text"` Text []Message `json:"text"`
} `json:"message"` } `json:"message"`
Functions struct { Functions *struct {
Text []model.Function `json:"text,omitempty"` Text []model.Function `json:"text,omitempty"`
} `json:"functions,omitempty"` } `json:"functions,omitempty"`
} `json:"payload"` } `json:"payload"`