Skip to content

Commit

Permalink
Update README.md python example
Browse files Browse the repository at this point in the history
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: microsoft#4601
  • Loading branch information
eranco74 authored Dec 10, 2024
1 parent b32f1a0 commit c26089e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c26089e

Please sign in to comment.