🔖 chore: Moonshot supports getting a list of models from the API
This commit is contained in:
parent
3282255cac
commit
fa54ca7b50
@ -28,6 +28,7 @@ func getMoonshotConfig() base.ProviderConfig {
|
|||||||
return base.ProviderConfig{
|
return base.ProviderConfig{
|
||||||
BaseURL: "https://api.moonshot.cn",
|
BaseURL: "https://api.moonshot.cn",
|
||||||
ChatCompletions: "/v1/chat/completions",
|
ChatCompletions: "/v1/chat/completions",
|
||||||
|
ModelList: "/v1/models",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -212,6 +212,9 @@ const typeConfig = {
|
|||||||
modelGroup: 'Deepseek'
|
modelGroup: 'Deepseek'
|
||||||
},
|
},
|
||||||
29: {
|
29: {
|
||||||
|
inputLabel: {
|
||||||
|
provider_models_list: '从Moonshot获取模型列表'
|
||||||
|
},
|
||||||
input: {
|
input: {
|
||||||
models: ['moonshot-v1-8k', 'moonshot-v1-32k', 'moonshot-v1-128k'],
|
models: ['moonshot-v1-8k', 'moonshot-v1-32k', 'moonshot-v1-128k'],
|
||||||
test_model: 'moonshot-v1-8k'
|
test_model: 'moonshot-v1-8k'
|
||||||
|
Loading…
Reference in New Issue
Block a user