If anyone is trying to use Azure via Github Models #4297
curiosityz
started this conversation in
General
Replies: 1 comment
-
Good callout! OpenAI models on the models marketplace on GitHub support the OpenAI api, so it seems like the azure openai client also works. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is what worked for me:
async def main() -> None:
# Define an agent
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],
)
Beta Was this translation helpful? Give feedback.
All reactions