magentic
magentic copied to clipboard
Add tests against the Azure OpenAI API
Add tests against the Azure OpenAI API to make sure this is working as expected.
As part of this improve usage experience of Azure. Some ideas/options
- add inputs to the
OpenaiChatModelclass for the Azure-specific fields if only a few - create a separate
AzureOpenaiChatModelfor this - (also?) allow passing an
OpenAIclient into the init ofOpenaiChatModel. This might be generally useful.
Related comment https://github.com/jackmpcollins/magentic/issues/261#issuecomment-2227657589
(also?) allow passing an OpenAI client into the init of OpenaiChatModel. This might be generally useful.
Let's avoid this if possible so that ChatModel parameters remain easily serializable so in future it can potentially be a return type of a prompt-function.