mirror of https://github.com/aliasrobotics/cai.git
Merge branch 'issue99_tool_time' into '0.4.0'
Start tool time fixed in stream (issue 99) See merge request aliasrobotics/alias_research/cai!161
This commit is contained in:
commit
36a85a3bdf
|
|
@ -507,7 +507,7 @@ def _run_local_streamed(command, call_id, timeout=100, tool_name=None, workspace
|
|||
from cai.util import cli_print_tool_output
|
||||
|
||||
output_buffer = []
|
||||
|
||||
start_time = time.time()
|
||||
# Start the process
|
||||
process = subprocess.Popen(
|
||||
command,
|
||||
|
|
@ -545,7 +545,7 @@ def _run_local_streamed(command, call_id, timeout=100, tool_name=None, workspace
|
|||
header.append(args_str, style="yellow")
|
||||
header.append(")", style="yellow")
|
||||
tool_time = 0
|
||||
start_time = time.time()
|
||||
|
||||
total_time = 0
|
||||
if START_TIME is not None:
|
||||
total_time = time.time() - START_TIME
|
||||
|
|
|
|||
Loading…
Reference in New Issue