feat: support set proxy for channel OpenAI (close #139)

This commit is contained in:
JustSong committed 2023-06-09 18:30:01 +08:00
1 parent ac11307faf
commit a04afb22ea
5 files changed
+25 -7

No files matched your search

+14
View File
@@ -198,6 +198,20 @@ const EditChannel = () => {
handleInputChange(null, { name: 'models', value: fullModels });
}}>填入所有模型</Button>
</div>
{
inputs.type === 1 && (
<Form.Field>
<Form.Input
label='代理'
name='base_url'
placeholder={'请输入 OpenAI API 代理地址,如果不需要请留空,格式为:https://api.openai.com'}
onChange={handleInputChange}
value={inputs.base_url}
autoComplete='new-password'
/>
</Form.Field>
)
}
{
batch ? <Form.Field>
<Form.TextArea