Skip to content

armgit / strix

Public Imported from GitHub
0

Open-source AI penetration testing tool to find and fix your app’s vulnerabilities.

Use high reasoning effort by default

Ahmed Allam4a719130ff5a
diff --git a/strix/cli/main.py b/strix/cli/main.py
index 654183a0..60f7f253 100644
--- a/strix/cli/main.py
+++ b/strix/cli/main.py
@@ -229,9 +229,6 @@ def clone_repository(repo_url: str, run_name: str) -> str:
[
git_executable,
"clone",
- "--depth=1",
- "--no-recurse-submodules",
- "--single-branch",
repo_url,
str(clone_path),
],
diff --git a/strix/llm/llm.py b/strix/llm/llm.py
index 116a2045..5b1cc7aa 100644
--- a/strix/llm/llm.py
+++ b/strix/llm/llm.py
@@ -313,7 +313,7 @@ class LLM:
completion_args["stop"] = ["</function>"]
if self._should_include_reasoning_effort():
- completion_args["reasoning_effort"] = "medium"
+ completion_args["reasoning_effort"] = "high"
queue = get_global_queue()
response = await queue.make_request(completion_args)
@@ -348,7 +348,7 @@ class LLM:
try:
cost = completion_cost(response) or 0.0
- except (ValueError, TypeError, RuntimeError) as e:
+ except Exception as e: # noqa: BLE001
logger.warning(f"Failed to calculate cost: {e}")
cost = 0.0
@@ -370,5 +370,5 @@ class LLM:
logger.info(f"Cache creation: {cache_creation_tokens} tokens written to cache")
logger.info(f"Usage stats: {self.usage_stats}")
- except (AttributeError, TypeError, ValueError) as e:
+ except Exception as e: # noqa: BLE001
logger.warning(f"Failed to update usage stats: {e}")