mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-08 09:43:42 +08:00
feat: support specific default api version now (#57)
This commit is contained in:
@@ -13,7 +13,8 @@ const EditChannel = () => {
|
||||
name: '',
|
||||
type: 1,
|
||||
key: '',
|
||||
base_url: ''
|
||||
base_url: '',
|
||||
other: ''
|
||||
};
|
||||
const [inputs, setInputs] = useState(originInputs);
|
||||
const handleInputChange = (e, { name, value }) => {
|
||||
@@ -92,6 +93,16 @@ const EditChannel = () => {
|
||||
autoComplete='new-password'
|
||||
/>
|
||||
</Form.Field>
|
||||
<Form.Field>
|
||||
<Form.Input
|
||||
label='默认 API 版本'
|
||||
name='other'
|
||||
placeholder={'请输入默认 API 版本,例如:2023-03-15-preview,该配置可以被实际的请求查询参数所覆盖'}
|
||||
onChange={handleInputChange}
|
||||
value={inputs.other}
|
||||
autoComplete='new-password'
|
||||
/>
|
||||
</Form.Field>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user