fix: 完善大模型供应商下拉
- 移除当前协议不兼容的 Perplexity 预设 - 限制供应商与模型列表高度并支持滚动
This commit is contained in:
1 parent
d8b124fc7c
commit
4c02d7d352
4 files changed
+2
-9
No files matched your search
@@ -206,7 +206,7 @@ export default function LLMConfigPage() {
|
||||
<Label className="text-[var(--dg-text-secondary)]">{t('aiops.providerLabel')}</Label>
|
||||
<Select value={cfg.provider} onValueChange={onProvider}>
|
||||
<SelectTrigger className="dg-input"><SelectValue /></SelectTrigger>
|
||||
<SelectContent className="dg-input">
|
||||
<SelectContent className="dg-input max-h-96">
|
||||
{unknownProvider && (
|
||||
<SelectGroup>
|
||||
<SelectLabel>{t('deploy.toast.saved')}</SelectLabel>
|
||||
@@ -262,7 +262,7 @@ export default function LLMConfigPage() {
|
||||
<SelectTrigger className="dg-input">
|
||||
<SelectValue placeholder={t('aiops.selectModel')} />
|
||||
</SelectTrigger>
|
||||
<SelectContent className="dg-input">
|
||||
<SelectContent className="dg-input max-h-96">
|
||||
{models.map((m) => <SelectItem key={m} value={m}>{m}</SelectItem>)}
|
||||
<SelectItem value="__manual">{t('system.manualInput')}</SelectItem>
|
||||
</SelectContent>
|
||||
|
||||
@@ -113,11 +113,6 @@ export const CLOUD_GENERAL_PROVIDERS: ProviderMeta[] = [
|
||||
models: ['gpt-oss-120b', 'zai-glm-4.7', 'gemma-4-31b'],
|
||||
planUrl: 'https://cloud.cerebras.ai/platform/', planLabelKey: 'aiops.getApiKey',
|
||||
},
|
||||
{
|
||||
id: 'perplexity', nameKey: 'aiops.providerPerplexity', endpoint: 'https://api.perplexity.ai',
|
||||
models: ['sonar-pro', 'sonar-reasoning-pro', 'sonar'],
|
||||
planUrl: 'https://www.perplexity.ai/account/api/keys', planLabelKey: 'aiops.getApiKey',
|
||||
},
|
||||
];
|
||||
|
||||
// 编码套餐使用独立密钥或专用端点,不与通用 API 配置混用。 // Logan.Li
|
||||
|
||||
Reference in new issue
Block a user