🔖 chore: Moonshot supports getting a list of models from the API

This commit is contained in:
MartialBE 2024-05-26 19:55:14 +08:00
parent 3282255cac
commit fa54ca7b50
No known key found for this signature in database
GPG Key ID: 27C0267EC84B0A5C
2 changed files with 4 additions and 0 deletions

View File

@ -28,6 +28,7 @@ func getMoonshotConfig() base.ProviderConfig {
return base.ProviderConfig{
BaseURL: "https://api.moonshot.cn",
ChatCompletions: "/v1/chat/completions",
ModelList: "/v1/models",
}
}

View File

@ -212,6 +212,9 @@ const typeConfig = {
modelGroup: 'Deepseek'
},
29: {
inputLabel: {
provider_models_list: '从Moonshot获取模型列表'
},
input: {
models: ['moonshot-v1-8k', 'moonshot-v1-32k', 'moonshot-v1-128k'],
test_model: 'moonshot-v1-8k'