Skip to content

Does instructor support Azure OpenAI API ? #212

Answered by aiannacc
YuboHe asked this question in Q&A
Discussion options

You must be logged in to vote

Just as an FYI to others, I ran into this error while using instructor v0.3.5 with Azure:

openai.NotFoundError: Error code: 404 - {'error': {'message': 'Unrecognized request argument supplied: functions', 'type': 'invalid_request_error', 'param': None, 'code': None}}

The fix was to switch away from the 2023-05-15 version of the Azure API. Version 2023-09-01-preview did the trick, though I haven't checked whether there are others that also work.

Replies: 7 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jxnl
Comment options

You must be logged in to vote
2 replies
@jxnl
Comment options

@lan2720
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants
Converted from issue

This discussion was converted from issue #122 on November 21, 2023 22:03.