feat: allow user to set custom api keys for different platforms

This commit is contained in:
RockYang
2023-09-04 17:34:29 +08:00
parent f7a427d2c0
commit 2820adad53
11 changed files with 76 additions and 68 deletions

View File

@@ -109,7 +109,7 @@ func (h *UserHandler) Save(c *gin.Context) {
ApiKeys: map[types.Platform]string{
types.OpenAI: "",
types.Azure: "",
types.ChatGML: "",
types.ChatGLM: "",
},
}),
Calls: h.App.SysConfig.UserInitCalls,