Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions instructor/processing/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ async def process_response_async(
raw_response=response,
)

if isinstance(response_model, ParallelBase):
if inspect.isclass(response_model) and issubclass(response_model, ParallelBase):
logger.debug(f"Returning model from ParallelBase")
model._raw_response = response
return model
Expand Down Expand Up @@ -381,7 +381,7 @@ class to parse the response into. Special DSL types supported:
raw_response=response,
)

if isinstance(response_model, ParallelBase):
if inspect.isclass(response_model) and issubclass(response_model, ParallelBase):
logger.debug(f"Returning model from ParallelBase")
model._raw_response = response
return model
Expand Down
Loading