From c26089e3a1c27b0f95c77cd37c4a666b27724dd1 Mon Sep 17 00:00:00 2001 From: Eran Cohen Date: Tue, 10 Dec 2024 13:22:54 +0200 Subject: [PATCH] Update README.md python example Update the Python example in the readme to import OpenAIChatCompletionClient from the new path Currently, the example fails with this error: ImportError: cannot import name 'OpenAIChatCompletionClient' from 'autogen_ext.models' (unknown location) This change relates to: https://github.com/microsoft/autogen/pull/4601 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2ef3d89e058e..1ab32e1f869a 100644 --- a/README.md +++ b/README.md @@ -119,7 +119,7 @@ from autogen_agentchat.agents import AssistantAgent from autogen_agentchat.ui import Console from autogen_agentchat.conditions import TextMentionTermination from autogen_agentchat.teams import RoundRobinGroupChat -from autogen_ext.models import OpenAIChatCompletionClient +from autogen_ext.models.openai import OpenAIChatCompletionClient # Define a tool async def get_weather(city: str) -> str: