Skip to content

Commit c26089e

Browse files
authored
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: #4601
1 parent b32f1a0 commit c26089e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ from autogen_agentchat.agents import AssistantAgent
119119
from autogen_agentchat.ui import Console
120120
from autogen_agentchat.conditions import TextMentionTermination
121121
from autogen_agentchat.teams import RoundRobinGroupChat
122-
from autogen_ext.models import OpenAIChatCompletionClient
122+
from autogen_ext.models.openai import OpenAIChatCompletionClient
123123

124124
# Define a tool
125125
async def get_weather(city: str) -> str:

0 commit comments

Comments
 (0)