Skip to content

Dev/v0.2#393

Merged
sonichi merged 43 commits into
mainfrom
dev/v0.2
Nov 4, 2023
Merged

Dev/v0.2#393
sonichi merged 43 commits into
mainfrom
dev/v0.2

Conversation

@sonichi

@sonichi sonichi commented Oct 23, 2023

Copy link
Copy Markdown
Contributor

Why are these changes needed?

This is WIP to address #203
Subtasks in #203 are addressed as smaller PRs merging into the dev/v0.2 branch.
Please review those smaller PRs before the PR is ready for the final review.
This PR will cause breaking changes. For example,

  • required dependency: openai>=1
  • inference parameter tuning and inference logging features are not available for openai>=1
  • api_base -> base_url, request_timeout -> timeout.
  • use_cache is removed as a kwarg in .create() for being automatically decided by seed: int | None.
  • deprecate functions in code utils and math utils which depend on openai<1
  • test for mathchat and teachable agent is temporarily disabled

Please check the migration guide: https://github.com/microsoft/autogen/pull/393/files#diff-1861c86f207554494e035c330ae1df296ccd9d976e2b6ffe7bd23fb2e8f91b06

Related issue number

close #203

Checks

* openai client

* client test
Comment thread notebook/oai_openai_utils.ipynb
@qingyun-wu

Copy link
Copy Markdown
Contributor

In this notebook https://github.com/microsoft/autogen/blob/82f3712b8c583771af8122d2cfd5b74f1280b870/notebook/agentchat_qdrant_RetrieveChat.ipynb, "api_base" should be changed to "base_urls"

@qingyun-wu qingyun-wu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I am approving this PR. It is fine to address the two comments in the migration PR.

* migration guide

* change in kwargs

* simplify header

* update optigude description
@thinkall thinkall mentioned this pull request Oct 30, 2023
3 tasks
Comment thread OAI_CONFIG_LIST_sample
Comment thread OAI_CONFIG_LIST_sample
Comment thread .github/workflows/build.yml Outdated
Comment thread test/agentchat/test_conversable_agent.py
thinkall and others added 4 commits November 3, 2023 20:42
* Add back tests for RetrieveChat

* Fix format

* Update dependencies order

* Fix path

* Fix path

* Fix path

* Fix tests

* Add not run openai on MacOS or Win

* Update skip openai tests

* Remove unnecessary dependencies, improve format

* Add py3.8 for testing qdrant

* Fix multiline error of windows

* Add openai tests

* Add dependency mathchat, remove unused envs
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.

support new openai package