Switched to AzureOpenAI for api_type=="azure"#1232
Merged
sonichi merged 16 commits intomicrosoft:mainfrom Jan 17, 2024
maxim-saplin:AzureOpenAI
Merged
Switched to AzureOpenAI for api_type=="azure"#1232sonichi merged 16 commits intomicrosoft:mainfrom maxim-saplin:AzureOpenAI
sonichi merged 16 commits intomicrosoft:mainfrom
maxim-saplin:AzureOpenAI
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1232 +/- ##
==========================================
+ Coverage 31.95% 41.81% +9.85%
==========================================
Files 33 33
Lines 4431 4415 -16
Branches 1035 1085 +50
==========================================
+ Hits 1416 1846 +430
+ Misses 2897 2421 -476
- Partials 118 148 +30
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Contributor
Author
Looks good, tests pass |
sonichi
approved these changes
Jan 17, 2024
joshkyh
pushed a commit
that referenced
this pull request
Jan 17, 2024
* Switched to AzureOpenAI for api_type=="azure" * Setting AzureOpenAI to empty object if no `openai` * extra_ and openai_ kwargs * test_client, support for Azure and "gpt-35-turbo-instruct" * instruct/azure model in test_client_stream * generalize aoai support (#1) * generalize aoai support * Null check, fixing tests * cleanup test --------- Co-authored-by: Maxim Saplin <smaxmail@gmail.com> * Returning back model names for instruct * process model in create * None check --------- Co-authored-by: Chi Wang <wang.chi@microsoft.com>
3 tasks
whiskyboy
pushed a commit
to whiskyboy/autogen
that referenced
this pull request
Apr 17, 2024
* Switched to AzureOpenAI for api_type=="azure" * Setting AzureOpenAI to empty object if no `openai` * extra_ and openai_ kwargs * test_client, support for Azure and "gpt-35-turbo-instruct" * instruct/azure model in test_client_stream * generalize aoai support (microsoft#1) * generalize aoai support * Null check, fixing tests * cleanup test --------- Co-authored-by: Maxim Saplin <smaxmail@gmail.com> * Returning back model names for instruct * process model in create * None check --------- Co-authored-by: Chi Wang <wang.chi@microsoft.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With version 1 of
openaiclient library there's a dedicated classAzureOpenAIto handle Azure endpoints. While the current version had a cryptic_process_for_azureworkaround likely coming from pre v1 times it makes sense to remove the old code and hand over the responsibility of interacting with Azure straight toopenailibrary/Checks
! I still don't have all the endpoints to completely run OpenAI tests, yet those few that ran before the change kept running after it.