Closed curiosityz closed 21 hours ago
This is what worked for me:
async def main() -> None:
weather_agent = AssistantAgent( name="weather_agent", model_client=AzureOpenAIChatCompletionClient( model="gpt-4o", api_version="2024-02-01", azure_endpoint="https://models.inference.ai.azure.com", model_capabilities={ "vision":True, "function_calling":True, "json_output":True, }
), tools=[get_weather], )
Good callout! OpenAI models on the models marketplace on GitHub support the OpenAI api, so it seems like the azure openai client also works.
This is what worked for me:
async def main() -> None:
Define an agent
), tools=[get_weather], )