Skip to content
Closed
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 run_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -2087,7 +2087,8 @@ def _build_api_kwargs(self, api_messages: list) -> dict:
_is_openrouter = "openrouter" in self.base_url.lower()
_is_nous = "nousresearch" in self.base_url.lower()

if _is_openrouter or _is_nous:
_is_mistral = "api.mistral.ai" in self.base_url.lower()
if (_is_openrouter or _is_nous) and not _is_mistral:
if self.reasoning_config is not None:
extra_body["reasoning"] = self.reasoning_config
else:
Expand Down Expand Up @@ -2612,7 +2613,6 @@ def _handle_max_iterations(self, messages: list, api_call_count: int) -> str:
summary_extra_body = {}
_is_openrouter = "openrouter" in self.base_url.lower()
_is_nous = "nousresearch" in self.base_url.lower()
if _is_openrouter or _is_nous:
if self.reasoning_config is not None:
summary_extra_body["reasoning"] = self.reasoning_config
else:
Expand Down