feat: support claude now (close #150)

This commit is contained in:
JustSong
2023-07-22 16:18:03 +08:00
parent 4139a7036f
commit 2ff15baf66
8 changed files with 400 additions and 129 deletions

View File

@@ -270,6 +270,24 @@ func init() {
Root: "ChatGLM2",
Parent: nil,
},
{
Id: "claude-instant-1",
Object: "model",
Created: 1677649963,
OwnedBy: "anturopic",
Permission: permission,
Root: "claude-instant-1",
Parent: nil,
},
{
Id: "claude-2",
Object: "model",
Created: 1677649963,
OwnedBy: "anturopic",
Permission: permission,
Root: "claude-2",
Parent: nil,
},
}
openAIModelsMap = make(map[string]OpenAIModels)
for _, model := range openAIModels {