Merge branch 'main' into dev

This commit is contained in:
RockYang
2024-01-19 10:09:18 +08:00
6 changed files with 258 additions and 5 deletions

View File

@@ -12,6 +12,9 @@ type ApiRequest struct {
Functions []interface{} `json:"functions,omitempty"` // 兼容中转平台
ToolChoice string `json:"tool_choice,omitempty"`
Input map[string]interface{} `json:"input,omitempty"` //兼容阿里通义千问
Parameters map[string]interface{} `json:"parameters,omitempty"` //兼容阿里通义千问
}
type Message struct {

View File

@@ -156,6 +156,7 @@ const Azure = Platform("Azure")
const ChatGLM = Platform("ChatGLM")
const Baidu = Platform("Baidu")
const XunFei = Platform("XunFei")
const Ali = Platform("Ali")
// UserChatConfig 用户的聊天配置
type UserChatConfig struct {