Skip to content

Commit

Permalink
Merge pull request #739 from Mirascope/fix-stream-response_model
Browse files Browse the repository at this point in the history
fix: fix stream with response_model
  • Loading branch information
willbakst authored Dec 16, 2024
2 parents df4e732 + d051993 commit 02895ae
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion mirascope/core/base/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def decorator(
json_mode: bool,
client: _SameSyncAndAsyncClientT | _SyncBaseClientT | _AsyncBaseClientT | None,
call_params: _BaseCallParamsT,
partial_tools: bool,
partial_tools: bool = False,
) -> Callable[_P, BaseStream] | Callable[_P, Awaitable[BaseStream]]:
if not is_prompt_template(fn):
fn = cast(
Expand Down
1 change: 0 additions & 1 deletion tests/core/base/test_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ def mock_stream_decorator_kwargs() -> dict:
"json_mode": True,
"client": MagicMock(),
"call_params": MagicMock(),
"partial_tools": False,
}


Expand Down

0 comments on commit 02895ae

Please sign in to comment.