Use high reasoning effort by default
This commit is contained in:
@@ -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),
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -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}")
|
||||||
|
|||||||
Reference in New Issue
Block a user