|  |  | @ -20,19 +20,19 @@ class OpenAI: | 
			
		
	
		
		
			
				
					
					|  |  |  |                  |  |  |  |                  | 
			
		
	
		
		
			
				
					
					|  |  |  |             self.ai = AIChat(api_key=self.api_key,  |  |  |  |             self.ai = AIChat(api_key=self.api_key,  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 system=self.system,  |  |  |  |                 system=self.system,  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 console=console,  |  |  |  |                 console=self.console,  | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 model=model,  |  |  |  |                 model=self.model,  | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 params=params,  |  |  |  |                 params=self.params,  | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 save_messages=save_messages) |  |  |  |                 save_messages=self.save_messages) | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |              |  |  |  |              | 
			
		
	
		
		
			
				
					
					|  |  |  |             # self.async_ai = AsyncAIChat( |  |  |  |             self.async_ai = AsyncAIChat( | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             #     api_key=self.api_key, |  |  |  |                 api_key=self.api_key, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             #     system=self.system, |  |  |  |                 system=self.system, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             #     console=console, |  |  |  |                 console=self.console, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             #     model=model, |  |  |  |                 model=self.model, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             #     params=params, |  |  |  |                 params=self.params, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             #     save_messages=save_messages |  |  |  |                 save_messages=self.save_messages | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             # ) |  |  |  |             ) | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |          |  |  |  |          | 
			
		
	
		
		
			
				
					
					|  |  |  |         except Exception as error: |  |  |  |         except Exception as error: | 
			
		
	
		
		
			
				
					
					|  |  |  |             raise ValueError(f"Failed to initialize the chat with error: {error}, check inputs and input types") |  |  |  |             raise ValueError(f"Failed to initialize the chat with error: {error}, check inputs and input types") | 
			
		
	
	
		
		
			
				
					|  |  | 
 |