feat: support ChatGLM2 (close #274)

This commit is contained in:
JustSong committed 2023-07-15 17:07:05 +08:00
1 parent 1158a8c364
commit efdc6c751d
3 files changed
+25 -5

No files matched your search

+18
View File
@@ -252,6 +252,24 @@ func init() {
Root: "code-davinci-edit-001",
Parent: nil,
},
{
Id: "ChatGLM",
Object: "model",
Created: 1677649963,
OwnedBy: "thudm",
Permission: permission,
Root: "ChatGLM",
Parent: nil,
},
{
Id: "ChatGLM2",
Object: "model",
Created: 1677649963,
OwnedBy: "thudm",
Permission: permission,
Root: "ChatGLM2",
Parent: nil,
},
}
openAIModelsMap = make(map[string]OpenAIModels)
for _, model := range openAIModels {