feat: 添加对 moonshot 模型的支持

This commit is contained in:
RockChinQ
2024-03-19 22:39:45 +08:00
parent c6347bea45
commit dead8fa168
10 changed files with 84 additions and 8 deletions
+15
View File
@@ -44,6 +44,21 @@
"name": "claude-3-haiku-20240307",
"requester": "anthropic-messages",
"token_mgr": "anthropic"
},
{
"name": "moonshot-v1-8k",
"requester": "moonshot-chat-completions",
"token_mgr": "moonshot"
},
{
"name": "moonshot-v1-32k",
"requester": "moonshot-chat-completions",
"token_mgr": "moonshot"
},
{
"name": "moonshot-v1-128k",
"requester": "moonshot-chat-completions",
"token_mgr": "moonshot"
}
]
}
+9 -1
View File
@@ -6,6 +6,9 @@
],
"anthropic": [
"sk-1234567890"
],
"moonshot": [
"sk-1234567890"
]
},
"requester": {
@@ -15,11 +18,16 @@
"timeout": 120
},
"anthropic-messages": {
"base-url": "https://api.anthropic.com/v1",
"base-url": "https://api.anthropic.com",
"args": {
"max_tokens": 1024
},
"timeout": 120
},
"moonshot-chat-completions": {
"base-url": "https://api.moonshot.cn/v1",
"args": {},
"timeout": 120
}
},
"model": "gpt-3.5-turbo",