Skip to content
Open
Changes from 2 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
2 changes: 2 additions & 0 deletions camel/models/deepseek_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ def _post_handle_response(
self, response: ChatCompletion
) -> ChatCompletion:
r"""Handle reasoning content with <think> tags at the beginning."""
if isinstance(response, (Stream, AsyncStream)):
return response
if (
self.model_type in [ModelType.DEEPSEEK_REASONER]
and os.environ.get("GET_REASONING_CONTENT", "false").lower()
Expand Down
Loading