mirror of
				https://github.com/songquanpeng/one-api.git
				synced 2025-11-04 07:43:41 +08:00 
			
		
		
		
	feat: update default API version for Azure OpenAI (#994)
* feat: Update default API version for Azure OpenAI. * chore: update other theme --------- Co-authored-by: JustSong <songquanpeng@foxmail.com>
This commit is contained in:
		@@ -230,7 +230,7 @@ const EditChannel = (props) => {
 | 
			
		||||
            localInputs.base_url = localInputs.base_url.slice(0, localInputs.base_url.length - 1);
 | 
			
		||||
        }
 | 
			
		||||
        if (localInputs.type === 3 && localInputs.other === '') {
 | 
			
		||||
            localInputs.other = '2023-06-01-preview';
 | 
			
		||||
            localInputs.other = '2024-03-01-preview';
 | 
			
		||||
        }
 | 
			
		||||
        if (localInputs.type === 18 && localInputs.other === '') {
 | 
			
		||||
            localInputs.other = 'v2.1';
 | 
			
		||||
@@ -348,7 +348,7 @@ const EditChannel = (props) => {
 | 
			
		||||
                                <Input
 | 
			
		||||
                                    label='默认 API 版本'
 | 
			
		||||
                                    name='azure_other'
 | 
			
		||||
                                    placeholder={'请输入默认 API 版本,例如:2023-06-01-preview,该配置可以被实际的请求查询参数所覆盖'}
 | 
			
		||||
                                    placeholder={'请输入默认 API 版本,例如:2024-03-01-preview,该配置可以被实际的请求查询参数所覆盖'}
 | 
			
		||||
                                    onChange={value => {
 | 
			
		||||
                                        handleInputChange('other', value)
 | 
			
		||||
                                    }}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user