Use high reasoning effort by default

This commit is contained in:
Ahmed Allam
2025-09-08 10:29:31 -07:00
parent 19f166e608
commit 4a719130ff
2 changed files with 3 additions and 6 deletions

View File

@@ -229,9 +229,6 @@ def clone_repository(repo_url: str, run_name: str) -> str:
[ [
git_executable, git_executable,
"clone", "clone",
"--depth=1",
"--no-recurse-submodules",
"--single-branch",
repo_url, repo_url,
str(clone_path), str(clone_path),
], ],

View File

@@ -313,7 +313,7 @@ class LLM:
completion_args["stop"] = ["</function>"] completion_args["stop"] = ["</function>"]
if self._should_include_reasoning_effort(): if self._should_include_reasoning_effort():
completion_args["reasoning_effort"] = "medium" completion_args["reasoning_effort"] = "high"
queue = get_global_queue() queue = get_global_queue()
response = await queue.make_request(completion_args) response = await queue.make_request(completion_args)
@@ -348,7 +348,7 @@ class LLM:
try: try:
cost = completion_cost(response) or 0.0 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}") logger.warning(f"Failed to calculate cost: {e}")
cost = 0.0 cost = 0.0
@@ -370,5 +370,5 @@ class LLM:
logger.info(f"Cache creation: {cache_creation_tokens} tokens written to cache") logger.info(f"Cache creation: {cache_creation_tokens} tokens written to cache")
logger.info(f"Usage stats: {self.usage_stats}") 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}") logger.warning(f"Failed to update usage stats: {e}")