fix: Add Model Providers:Azure-OpenAI error #1402 (#1512)

### What problem does this PR solve?

fix: Add Model Providers:Azure-OpenAI error #1402
### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
balibabu
2024-07-15 15:55:04 +08:00
committed by GitHub
parent c2693d2f46
commit fdc21ec853
2 changed files with 10 additions and 18 deletions

View File

@@ -4,7 +4,11 @@ import { IAddLlmRequestBody } from '@/interfaces/request/llm';
import { Flex, Form, Input, Modal, Select, Space, Switch } from 'antd';
import omit from 'lodash/omit';
type FieldType = IAddLlmRequestBody & { vision: boolean };
type FieldType = IAddLlmRequestBody & {
vision: boolean;
volc_ak: string;
volc_sk: string;
};
const { Option } = Select;
@@ -13,7 +17,7 @@ const VolcEngineModal = ({
hideModal,
onOk,
loading,
llmFactory
llmFactory,
}: IModalProps<IAddLlmRequestBody> & { llmFactory: string }) => {
const [form] = Form.useForm<FieldType>();