mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-08 10:13:44 +08:00
feat: allow user to set custom api keys for different platforms
This commit is contained in:
@@ -113,11 +113,11 @@ type Platform string
|
||||
|
||||
const OpenAI = Platform("OpenAI")
|
||||
const Azure = Platform("Azure")
|
||||
const ChatGML = Platform("ChatGML")
|
||||
const ChatGLM = Platform("ChatGLM")
|
||||
|
||||
// UserChatConfig 用户的聊天配置
|
||||
type UserChatConfig struct {
|
||||
ApiKeys map[Platform]string
|
||||
ApiKeys map[Platform]string `json:"api_keys"`
|
||||
}
|
||||
|
||||
type ModelAPIConfig struct {
|
||||
|
||||
Reference in New Issue
Block a user