Commit e7506ee9 by 同語 Committed by GitHub

🧬merge: Add a button to copy the selected model in the channel (#1290)

Merge pull request #1290 from JoeyLearnsToCode/feat-copy-models
parents 13fd901d c9529d00
......@@ -428,6 +428,7 @@
"填入基础模型": "Fill in the basic model",
"填入所有模型": "Fill in all models",
"清除所有模型": "Clear all models",
"复制所有模型": "Copy all models",
"密钥": "Key",
"请输入密钥": "Please enter the key",
"批量创建": "Batch Create",
......
......@@ -26,7 +26,7 @@ import {
Card,
Tag,
} from '@douyinfe/semi-ui';
import { getChannelModels } from '../../helpers';
import { getChannelModels, copy } from '../../helpers';
import {
IconSave,
IconClose,
......@@ -832,6 +832,16 @@ useEffect(() => {
>
{t('清除所有模型')}
</Button>
<Button
type='tertiary'
onClick={() => {
copy(inputs.models.join(','));
}}
size="large"
className="!rounded-lg"
>
{t('复制所有模型')}
</Button>
</div>
<div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment