Switched to AzureOpenAI for api_type=="azure"#1232
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. |
|
Could you fix the conflict? We are close to ready. |
|
@sonichi , I had to return the model names workaround to fix tests using get-3.5-instruct, without the fix the tests are not runnable with azure models
|
Pushed a change that should fix this. |
Looks good, tests pass |


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.