Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import oai.client directly in ConversableAgent #1557

Conversation

AkashKulkarni4444
Copy link
Contributor

@AkashKulkarni4444 AkashKulkarni4444 commented Feb 6, 2024

Bug fixed

Incorrect import statement was present in conversible_agent.py.
It has been corrected.

Why are these changes needed ?

Full description provided in #1526

Related issue number

closes #1526 #1498

Reviewer
@ekzhu

@codecov-commenter
Copy link

codecov-commenter commented Feb 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (18a15d7) 35.11% compared to head (df612b7) 47.19%.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1557       +/-   ##
===========================================
+ Coverage   35.11%   47.19%   +12.08%     
===========================================
  Files          43       43               
  Lines        5206     5206               
  Branches     1211     1280       +69     
===========================================
+ Hits         1828     2457      +629     
+ Misses       3228     2542      -686     
- Partials      150      207       +57     
Flag Coverage Δ
unittests 47.15% <100.00%> (+12.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@ekzhu ekzhu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to be clear, this is not a bug, and it happens when there are potentially conflicted installations of autogen (not ours) and pyautogen. In that case it is better to purge both and install again.

We can make the change in this PR still because it is consistent with how other imports are done in the code base.

@ekzhu ekzhu changed the title Fixed OpenAIWrapper incorrect import bug Import oai.client directly in ConversableAgent Feb 6, 2024
@sonichi sonichi added this pull request to the merge queue Feb 6, 2024
Merged via the queue into microsoft:main with commit 7811c15 Feb 6, 2024
43 of 53 checks passed
whiskyboy pushed a commit to whiskyboy/autogen that referenced this pull request Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: OpenAIWrapper import not working.
4 participants