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.
Adds Azure OpenAI support as per #276.
There are some small differences from my initial proposal, the main one being renaming
model_id
tomodel
.Imo using
model_id
doesn't make sense for Azure OpenAI, theopenai
package usesmodel
as well, and in Azure this field refers to a model deployment.I can rename this to
model_id
for consistency purposes with the otherModel
implementations if needed, but I think it would be confusing for Azure users.Other than that, I've also fixed some small issues with the original OpenAIServerModel docs, hope it's ok.