You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
% python groq_example.py
Traceback (most recent call last):
File "/Users/Development/lab/structured-output/instructor/groq_example.py", line 16, in <module>
client = instructor.from_openai(client, mode=instructor.Mode.MD_JSON)
File "/opt/homebrew/Caskroom/miniconda/base/envs/instructor/lib/python3.10/site-packages/instructor/client.py", line 274, in from_openai
assert isinstance(
AssertionError: Client must be an instance of openai.OpenAI or openai.AsyncOpenAI
To Reproduce
Get the described example on https://python.useinstructor.com/hub/groq/ and run.
It seems instructor client.py is expecting openai.OpenAI as described on line 274 of client.py, so the example will never work.
Maybe I'm missing something?
The text was updated successfully, but these errors were encountered:
What Model are you using?
Describe the bug
Trying the example from instructor hub or described on https://python.useinstructor.com/hub/groq/ , but getting an error.
To Reproduce
Get the described example on https://python.useinstructor.com/hub/groq/ and run.
It seems instructor client.py is expecting openai.OpenAI as described on line 274 of client.py, so the example will never work.
Maybe I'm missing something?
The text was updated successfully, but these errors were encountered: