Pārlūkot izejas kodu
			
			feat: add openai o1 & update pricing and max_token of other models (#11780)
			
				
Signed-off-by: -LAN- <laipz8200@outlook.com>
			
			tags/0.14.1
		 
		
			
				
					
						
						-LAN-
					
					pirms 10 mēnešiem
				 
				
					
						
							
								vecāks
							
							
						
						
						revīzija
						a5db7c9acb
					 
				 
			 
		 
		
			
				
				  
				  Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam
				
			
		
		
		
	
	
		
			
				
				
					
						
						
							
								
									
										
											
											
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														 | 
													
													
												
													
														 | 
														 | 
														- gpt-4o-audio-preview | 
														 | 
														 | 
														 | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														- o1 | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														- o1-2024-12-17 | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														- o1-mini | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														- o1-mini-2024-09-12 | 
													
													
												
													
														 | 
														 | 
														- gpt-4 | 
														 | 
														 | 
														- gpt-4 | 
													
													
												
													
														 | 
														 | 
														- gpt-4o | 
														 | 
														 | 
														- gpt-4o | 
													
													
												
													
														 | 
														 | 
														- gpt-4o-2024-05-13 | 
														 | 
														 | 
														- gpt-4o-2024-05-13 | 
													
													
												
											
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														 | 
													
													
												
													
														 | 
														 | 
														- chatgpt-4o-latest | 
														 | 
														 | 
														- chatgpt-4o-latest | 
													
													
												
													
														 | 
														 | 
														- gpt-4o-mini | 
														 | 
														 | 
														- gpt-4o-mini | 
													
													
												
													
														 | 
														 | 
														- gpt-4o-mini-2024-07-18 | 
														 | 
														 | 
														- gpt-4o-mini-2024-07-18 | 
													
													
												
													
														 | 
														 | 
														- o1-preview | 
														 | 
														 | 
														 | 
													
													
												
													
														 | 
														 | 
														- o1-preview-2024-09-12 | 
														 | 
														 | 
														 | 
													
													
												
													
														 | 
														 | 
														- o1-mini | 
														 | 
														 | 
														 | 
													
													
												
													
														 | 
														 | 
														- o1-mini-2024-09-12 | 
														 | 
														 | 
														 | 
													
													
												
													
														 | 
														 | 
														- gpt-4-turbo | 
														 | 
														 | 
														- gpt-4-turbo | 
													
													
												
													
														 | 
														 | 
														- gpt-4-turbo-2024-04-09 | 
														 | 
														 | 
														- gpt-4-turbo-2024-04-09 | 
													
													
												
													
														 | 
														 | 
														- gpt-4-turbo-preview | 
														 | 
														 | 
														- gpt-4-turbo-preview | 
													
													
												
											
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														 | 
													
													
												
													
														 | 
														 | 
														- gpt-3.5-turbo-1106 | 
														 | 
														 | 
														- gpt-3.5-turbo-1106 | 
													
													
												
													
														 | 
														 | 
														- gpt-3.5-turbo-0613 | 
														 | 
														 | 
														- gpt-3.5-turbo-0613 | 
													
													
												
													
														 | 
														 | 
														- gpt-3.5-turbo-instruct | 
														 | 
														 | 
														- gpt-3.5-turbo-instruct | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														- gpt-4o-audio-preview | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														- o1-preview | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														- o1-preview-2024-09-12 | 
													
													
												
													
														 | 
														 | 
														- text-davinci-003 | 
														 | 
														 | 
														- text-davinci-003 | 
													
													
												
											
										
									
								
							 
						
					
				 
			 
		
	
	
		
			
				
				
					
						
						
							
								
									
										
											
											
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														 | 
													
													
												
													
														 | 
														 | 
														    use_template: frequency_penalty | 
														 | 
														 | 
														    use_template: frequency_penalty | 
													
													
												
													
														 | 
														 | 
														  - name: max_tokens | 
														 | 
														 | 
														  - name: max_tokens | 
													
													
												
													
														 | 
														 | 
														    use_template: max_tokens | 
														 | 
														 | 
														    use_template: max_tokens | 
													
													
												
													
														 | 
														 | 
														    default: 512 | 
														 | 
														 | 
														 | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														    default: 16384 | 
													
													
												
													
														 | 
														 | 
														    min: 1 | 
														 | 
														 | 
														    min: 1 | 
													
													
												
													
														 | 
														 | 
														    max: 16384 | 
														 | 
														 | 
														    max: 16384 | 
													
													
												
													
														 | 
														 | 
														  - name: response_format | 
														 | 
														 | 
														  - name: response_format | 
													
													
												
											
										
									
								
							 
						
					
				 
			 
		
	
	
		
			
				
				
					
						
						
							
								
									
										
											
											
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														 | 
													
													
												
													
														 | 
														 | 
														    use_template: frequency_penalty | 
														 | 
														 | 
														    use_template: frequency_penalty | 
													
													
												
													
														 | 
														 | 
														  - name: max_tokens | 
														 | 
														 | 
														  - name: max_tokens | 
													
													
												
													
														 | 
														 | 
														    use_template: max_tokens | 
														 | 
														 | 
														    use_template: max_tokens | 
													
													
												
													
														 | 
														 | 
														    default: 512 | 
														 | 
														 | 
														 | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														    default: 16384 | 
													
													
												
													
														 | 
														 | 
														    min: 1 | 
														 | 
														 | 
														    min: 1 | 
													
													
												
													
														 | 
														 | 
														    max: 4096 | 
														 | 
														 | 
														 | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														    max: 16384 | 
													
													
												
													
														 | 
														 | 
														  - name: response_format | 
														 | 
														 | 
														  - name: response_format | 
													
													
												
													
														 | 
														 | 
														    label: | 
														 | 
														 | 
														    label: | 
													
													
												
													
														 | 
														 | 
														      zh_Hans: 回复格式 | 
														 | 
														 | 
														      zh_Hans: 回复格式 | 
													
													
												
											
										
									
								
							 
						
					
				 
			 
		
	
	
		
			
				
				
					
						
						
							
								
									
										
											
											
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														 | 
													
													
												
													
														 | 
														 | 
														    use_template: frequency_penalty | 
														 | 
														 | 
														    use_template: frequency_penalty | 
													
													
												
													
														 | 
														 | 
														  - name: max_tokens | 
														 | 
														 | 
														  - name: max_tokens | 
													
													
												
													
														 | 
														 | 
														    use_template: max_tokens | 
														 | 
														 | 
														    use_template: max_tokens | 
													
													
												
													
														 | 
														 | 
														    default: 512 | 
														 | 
														 | 
														 | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														    default: 16384 | 
													
													
												
													
														 | 
														 | 
														    min: 1 | 
														 | 
														 | 
														    min: 1 | 
													
													
												
													
														 | 
														 | 
														    max: 16384 | 
														 | 
														 | 
														    max: 16384 | 
													
													
												
													
														 | 
														 | 
														  - name: response_format | 
														 | 
														 | 
														  - name: response_format | 
													
													
												
											
										
									
								
							 
						
					
				 
			 
		
	
	
		
			
				
				
					
						
						
							
								
									
										
											
											
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														 | 
													
													
												
													
														 | 
														 | 
														    use_template: frequency_penalty | 
														 | 
														 | 
														    use_template: frequency_penalty | 
													
													
												
													
														 | 
														 | 
														  - name: max_tokens | 
														 | 
														 | 
														  - name: max_tokens | 
													
													
												
													
														 | 
														 | 
														    use_template: max_tokens | 
														 | 
														 | 
														    use_template: max_tokens | 
													
													
												
													
														 | 
														 | 
														    default: 512 | 
														 | 
														 | 
														 | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														    default: 16384 | 
													
													
												
													
														 | 
														 | 
														    min: 1 | 
														 | 
														 | 
														    min: 1 | 
													
													
												
													
														 | 
														 | 
														    max: 16384 | 
														 | 
														 | 
														    max: 16384 | 
													
													
												
													
														 | 
														 | 
														  - name: response_format | 
														 | 
														 | 
														  - name: response_format | 
													
													
												
											
										
									
								
							 
						
					
				 
			 
		
	
	
		
			
				
				
					
						
						
							
								
									
										
											
											
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														 | 
													
													
												
													
														 | 
														 | 
														    use_template: frequency_penalty | 
														 | 
														 | 
														    use_template: frequency_penalty | 
													
													
												
													
														 | 
														 | 
														  - name: max_tokens | 
														 | 
														 | 
														  - name: max_tokens | 
													
													
												
													
														 | 
														 | 
														    use_template: max_tokens | 
														 | 
														 | 
														    use_template: max_tokens | 
													
													
												
													
														 | 
														 | 
														    default: 512 | 
														 | 
														 | 
														 | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														    default: 16384 | 
													
													
												
													
														 | 
														 | 
														    min: 1 | 
														 | 
														 | 
														    min: 1 | 
													
													
												
													
														 | 
														 | 
														    max: 4096 | 
														 | 
														 | 
														 | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														    max: 16384 | 
													
													
												
													
														 | 
														 | 
														  - name: response_format | 
														 | 
														 | 
														  - name: response_format | 
													
													
												
													
														 | 
														 | 
														    label: | 
														 | 
														 | 
														    label: | 
													
													
												
													
														 | 
														 | 
														      zh_Hans: 回复格式 | 
														 | 
														 | 
														      zh_Hans: 回复格式 | 
													
													
												
											
										
									
								
							 
						
					
				 
			 
		
	
	
		
			
				
				
					
						
						
							
								
									
										
											
											
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														 | 
													
													
												
													
														 | 
														 | 
														    use_template: frequency_penalty | 
														 | 
														 | 
														    use_template: frequency_penalty | 
													
													
												
													
														 | 
														 | 
														  - name: max_tokens | 
														 | 
														 | 
														  - name: max_tokens | 
													
													
												
													
														 | 
														 | 
														    use_template: max_tokens | 
														 | 
														 | 
														    use_template: max_tokens | 
													
													
												
													
														 | 
														 | 
														    default: 512 | 
														 | 
														 | 
														 | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														    default: 16384 | 
													
													
												
													
														 | 
														 | 
														    min: 1 | 
														 | 
														 | 
														    min: 1 | 
													
													
												
													
														 | 
														 | 
														    max: 16384 | 
														 | 
														 | 
														    max: 16384 | 
													
													
												
													
														 | 
														 | 
														  - name: response_format | 
														 | 
														 | 
														  - name: response_format | 
													
													
												
											
										
									
								
							 
						
					
				 
			 
		
	
	
		
			
				
				
					
						
						
							
								
									
										
											
											
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														 | 
													
													
												
													
														 | 
														 | 
														    use_template: frequency_penalty | 
														 | 
														 | 
														    use_template: frequency_penalty | 
													
													
												
													
														 | 
														 | 
														  - name: max_tokens | 
														 | 
														 | 
														  - name: max_tokens | 
													
													
												
													
														 | 
														 | 
														    use_template: max_tokens | 
														 | 
														 | 
														    use_template: max_tokens | 
													
													
												
													
														 | 
														 | 
														    default: 512 | 
														 | 
														 | 
														 | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														    default: 16384 | 
													
													
												
													
														 | 
														 | 
														    min: 1 | 
														 | 
														 | 
														    min: 1 | 
													
													
												
													
														 | 
														 | 
														    max: 16384 | 
														 | 
														 | 
														    max: 16384 | 
													
													
												
													
														 | 
														 | 
														  - name: response_format | 
														 | 
														 | 
														  - name: response_format | 
													
													
												
											
										
									
								
							 
						
					
				 
			 
		
	
	
		
			
				
				
					
						
						
							
								
									
										
											
											
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														 | 
													
													
												
													
														 | 
														 | 
														    use_template: frequency_penalty | 
														 | 
														 | 
														    use_template: frequency_penalty | 
													
													
												
													
														 | 
														 | 
														  - name: max_tokens | 
														 | 
														 | 
														  - name: max_tokens | 
													
													
												
													
														 | 
														 | 
														    use_template: max_tokens | 
														 | 
														 | 
														    use_template: max_tokens | 
													
													
												
													
														 | 
														 | 
														    default: 512 | 
														 | 
														 | 
														 | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														    default: 16384 | 
													
													
												
													
														 | 
														 | 
														    min: 1 | 
														 | 
														 | 
														    min: 1 | 
													
													
												
													
														 | 
														 | 
														    max: 4096 | 
														 | 
														 | 
														 | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														    max: 16384 | 
													
													
												
													
														 | 
														 | 
														  - name: response_format | 
														 | 
														 | 
														  - name: response_format | 
													
													
												
													
														 | 
														 | 
														    label: | 
														 | 
														 | 
														    label: | 
													
													
												
													
														 | 
														 | 
														      zh_Hans: 回复格式 | 
														 | 
														 | 
														      zh_Hans: 回复格式 | 
													
													
												
											
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														 | 
													
													
												
													
														 | 
														 | 
														      - text | 
														 | 
														 | 
														      - text | 
													
													
												
													
														 | 
														 | 
														      - json_object | 
														 | 
														 | 
														      - json_object | 
													
													
												
													
														 | 
														 | 
														pricing: | 
														 | 
														 | 
														pricing: | 
													
													
												
													
														 | 
														 | 
														  input: '5.00' | 
														 | 
														 | 
														 | 
													
													
												
													
														 | 
														 | 
														  output: '15.00' | 
														 | 
														 | 
														 | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														  input: '2.50' | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														  output: '10.00' | 
													
													
												
													
														 | 
														 | 
														  unit: '0.000001' | 
														 | 
														 | 
														  unit: '0.000001' | 
													
													
												
													
														 | 
														 | 
														  currency: USD | 
														 | 
														 | 
														  currency: USD | 
													
													
												
											
										
									
								
							 
						
					
				 
			 
		
	
	
		
			
				
				
					
						
						
							
								
									
										
											
											
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														 | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														model: o1-2024-12-17 | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														label: | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														  en_US: o1-2024-12-17 | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														model_type: llm | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														features: | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														  - multi-tool-call | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														  - agent-thought | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														  - stream-tool-call | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														  - vision | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														model_properties: | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														  mode: chat | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														  context_size: 200000 | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														parameter_rules: | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														  - name: max_tokens | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														    use_template: max_tokens | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														    default: 50000 | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														    min: 1 | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														    max: 50000 | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														  - name: response_format | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														    label: | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														      zh_Hans: 回复格式 | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														      en_US: response_format | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														    type: string | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														    help: | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														      zh_Hans: 指定模型必须输出的格式 | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														      en_US: specifying the format that the model must output | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														    required: false | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														    options: | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														      - text | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														      - json_object | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														pricing: | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														  input: '15.00' | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														  output: '60.00' | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														  unit: '0.000001' | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														  currency: USD | 
													
													
												
											
										
									
								
							 
						
					
				 
			 
		
	
	
		
			
				
				
					
						
						
							
								
									
										
											
											
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														 | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														model: o1 | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														label: | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														  zh_Hans: o1 | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														  en_US: o1 | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														model_type: llm | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														features: | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														  - multi-tool-call | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														  - agent-thought | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														  - stream-tool-call | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														  - vision | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														model_properties: | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														  mode: chat | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														  context_size: 200000 | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														parameter_rules: | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														  - name: max_tokens | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														    use_template: max_tokens | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														    default: 50000 | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														    min: 1 | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														    max: 50000 | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														  - name: response_format | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														    label: | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														      zh_Hans: 回复格式 | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														      en_US: response_format | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														    type: string | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														    help: | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														      zh_Hans: 指定模型必须输出的格式 | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														      en_US: specifying the format that the model must output | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														    required: false | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														    options: | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														      - text | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														      - json_object | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														pricing: | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														  input: '15.00' | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														  output: '60.00' | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														  unit: '0.000001' | 
													
													
												
													
														 | 
														 | 
														 | 
														 | 
														 | 
														  currency: USD |