Array as completions.parse's response_format #1734
Unanswered
CodyBontecou
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to adjust the
response_format
to instead be anIterable[UserDetail]
and have the response return an array of UserDetail's rather than a single.Explicitly setting
response_format=Iterable[UserDetail]
gives me the error:TypeError: issubclass() arg 1 must be a class
.I was able to get this to work using Instructor's implementation, so it's possible. But I'm not sure how they're making it work.
Beta Was this translation helpful? Give feedback.
All reactions