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
It would be really useful to be able to return an object type of list when using client.chat.completions.create_iterable / create_partial / create_with_completion. The patched client currently only supports list with vanilla create:
Agree, the design of create_iterable is a bit odd and clashes with create_with_completion.
Imho the cleanest implementation for users would be to just allow to pass a list[BaseModel] / List[BaseModel] for responsemodel as suggested.
It would be really useful to be able to return an object type of
list
when usingclient.chat.completions.create_iterable
/create_partial
/create_with_completion
. The patched client currently only supportslist
with vanillacreate
:create_with_completion
would be a priority for this support (create
already works).The text was updated successfully, but these errors were encountered: