fix: remove duplicate selected models

This commit is contained in:
jialin
2026-02-06 11:13:49 +08:00
parent 2765d5edeb
commit d54722609c
7 changed files with 59 additions and 16 deletions
@@ -1,12 +1,15 @@
import IconFont from '@/components/icon-font';
import SealInput from '@/components/seal-form/seal-input';
import { PageActionType } from '@/config/types';
import YamlEditor from '@/pages/_components/yaml-editor';
import { useIntl } from '@umijs/max';
import { Form } from 'antd';
import { Button, Form } from 'antd';
import React, { forwardRef, useImperativeHandle } from 'react';
import APIKeys from './api-keys';
import ProxyConfig from './proxy-config';
const referLink = `https://higress.cn/docs/latest/plugins/ai/api-provider/ai-proxy/?spm=36971b57.3562eb7c.0.0.31764f5f7uLs2F#%E6%8F%90%E4%BE%9B%E5%95%86%E7%89%B9%E6%9C%89%E9%85%8D%E7%BD%AE`;
const AdvanceConfig: React.FC<{
action: PageActionType;
ref?: any;
@@ -45,7 +48,18 @@ const AdvanceConfig: React.FC<{
</Form.Item>
<YamlEditor
ref={editorRef}
title={`${intl.formatMessage({ id: 'providers.form.customConfig' })} (YAML)`}
title={
<span className="flex-center">
<span>{`${intl.formatMessage({ id: 'providers.form.customConfig' })} YAML`}</span>
<Button size="small" type="link" target="_blank" href={referLink}>
{intl.formatMessage({ id: 'playground.audio.enablemic.doc' })}{' '}
<IconFont
type="icon-external-link"
className="font-size-14"
></IconFont>
</Button>
</span>
}
value={fileContent}
height={300}
onUpload={(content) => {