mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-12 03:13:41 +08:00
feat: 支持CozeV3
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user