from litellm import completion tools = [ { "type": "function", "function": { "name": "get_weather", "description": "Get weather information for a location", "parameters": { "type": "object", "properties": { "location": { "type": "string", "description": "The city and state" } }, "required": ["location"] } } } ] response = completion( model="gpt-3.5-turbo", # Also works with compatible models messages=[{"role": "user", "content": "What's the weather in San Francisco?"}], tools=tools, tool_choice="auto" ) __ __