Fix examples/tool_calling_agent_ollama.py
This commit is contained in:
		
							parent
							
								
									c3a11e09da
								
							
						
					
					
						commit
						dbb8b7f5ce
					
				|  | @ -4,7 +4,7 @@ from typing import Optional | |||
| 
 | ||||
| model = LiteLLMModel( | ||||
|     model_id="ollama_chat/llama3.2", | ||||
|     api_base="http://localhost:11434/v1", # replace with remote open-ai compatible server if necessary | ||||
|     api_base="http://localhost:11434", # replace with remote open-ai compatible server if necessary | ||||
|     api_key="your-api-key" # replace with API key if necessary | ||||
| ) | ||||
| 
 | ||||
|  | @ -22,4 +22,4 @@ def get_weather(location: str, celsius: Optional[bool] = False) -> str: | |||
| 
 | ||||
| agent = ToolCallingAgent(tools=[get_weather], model=model) | ||||
| 
 | ||||
| print(agent.run("What's the weather like in Paris?")) | ||||
| print(agent.run("What's the weather like in Paris?")) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue