Hello,
Thank you very much for a prompt response. I suppose those smart quotes appeared somehow during formatting. Original unformatted request is just fine. Please see it below. Those requests are good for both OpenAI and xAI…
{
"model" : "gemini-1.5-flash",
"messages" : [{"content":"what’s the weather in Stamford, ct","role":"user"},{"name":"get_current_weather","role":"function","content":"{\"description\":\"Clear skies\",\"temperature\":\"1\",\"unit\":\"\"}"}],
"tools":[{"type":"function","function":{"name":"get_current_weather","parameters":{"type":"object","properties":{"location":{"type":"string","description":"The city and state, e.g. San Francisco, CA"},"unit":{"type":"string","enum":["celsius","fahrenheit"]}},"required":["location"]},"description":"Get the current weather in a given location"}}]
}