The root cause of this error is that the initialize_tools method in the Swarms class is passing an instance of OpenAI to the load_qa_with_sources_chain function, which then passes it to the LLMChain constructor. The LLMChain constructor expects a dictionary for the llm parameter, but it's receiving an instance of OpenAI instead.
	
		
	
				
					
				
			
							parent
							
								
									08852720dd
								
							
						
					
					
						commit
						4f79c604e8
					
				
					Loading…
					
					
				
		Reference in new issue