VolcEngine SDK V3 adaptation (#2082)

1) Configuration interface update
2) Back-end adaptation API update
Note: The official no longer supports the Skylark1/2 series, and all
have been switched to the Doubao series


![image](https://github.com/user-attachments/assets/f6fd8782-0cdf-4c0b-ac8f-9eb130f667a5)

### What problem does this PR solve?

_Briefly describe what this PR aims to solve. Include background context
that will help reviewers understand the purpose of the PR._

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
- [ ] New Feature (non-breaking change which adds functionality)
- [ ] Documentation Update
- [ ] Refactoring
- [ ] Performance Improvement
- [ ] Other (please describe):

Co-authored-by: 海贼宅 <stu_xyx@163.com>
This commit is contained in:
yungongzi
2024-08-26 13:34:29 +08:00
committed by GitHub
parent e953f01951
commit 7539d142a9
7 changed files with 44 additions and 96 deletions

View File

@@ -8,6 +8,8 @@ type FieldType = IAddLlmRequestBody & {
vision: boolean;
volc_ak: string;
volc_sk: string;
endpoint_id: string;
ark_api_key: string;
};
const { Option } = Select;
@@ -51,7 +53,7 @@ const VolcEngineModal = ({
return (
<Flex justify={'space-between'}>
<a
href="https://www.volcengine.com/docs/82379/1095322"
href="https://www.volcengine.com/docs/82379/1302008"
target="_blank"
rel="noreferrer"
>
@@ -88,18 +90,18 @@ const VolcEngineModal = ({
<Input placeholder={t('volcModelNameMessage')} />
</Form.Item>
<Form.Item<FieldType>
label={t('addVolcEngineAK')}
name="volc_ak"
rules={[{ required: true, message: t('volcAKMessage') }]}
label={t('addEndpointID')}
name="endpoint_id"
rules={[{ required: true, message: t('endpointIDMessage') }]}
>
<Input placeholder={t('volcAKMessage')} />
<Input placeholder={t('endpointIDMessage')} />
</Form.Item>
<Form.Item<FieldType>
label={t('addVolcEngineSK')}
name="volc_sk"
rules={[{ required: true, message: t('volcAKMessage') }]}
label={t('addArkApiKey')}
name="ark_api_key"
rules={[{ required: true, message: t('ArkApiKeyMessage') }]}
>
<Input placeholder={t('volcAKMessage')} />
<Input placeholder={t('ArkApiKeyMessage')} />
</Form.Item>
<Form.Item noStyle dependencies={['model_type']}>
{({ getFieldValue }) =>