feat: 支持CozeV3

This commit is contained in:
suziheng
2025-01-22 21:37:17 +08:00
parent dde3cff708
commit cbf8413a39
4 changed files with 40 additions and 8 deletions

View File

@@ -2,9 +2,9 @@ package coze
type Message struct {
Role string `json:"role"`
Type string `json:"type"`
Type string `json:"type,omitempty"`
Content string `json:"content"`
ContentType string `json:"content_type"`
ContentType string `json:"content_type,omitempty"`
}
type ErrorInformation struct {
@@ -78,3 +78,10 @@ type V3Response struct {
Code int `json:"code"`
Msg string `json:"msg"`
}
type V3Request struct {
BotId string `json:"bot_id"`
UserId string `json:"user_id"`
AdditionalMessages []Message `json:"additional_messages"`
Stream bool `json:"stream"`
}