Fix error in "fixed" timestamps
This commit is contained in:
2
run.sh
2
run.sh
@@ -1,5 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
export MSYS_NO_PATHCONV=1
|
||||
set -e
|
||||
|
||||
function chown_iterations() {
|
||||
@@ -21,6 +22,7 @@ docker run \
|
||||
-ti \
|
||||
--gpus=all \
|
||||
-p 8080:8080 \
|
||||
-e SIA_ITERATIONS_DIR=/root/iterations \
|
||||
--env-file .env \
|
||||
-v /$(pwd)/model/:/root/model/ \
|
||||
-v /$(pwd)/.env:/root/.env \
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from datetime import datetime
|
||||
from datetime import datetime, timezone
|
||||
from enum import Enum, auto
|
||||
from threading import Lock
|
||||
from typing import Callable, Dict, List, Optional
|
||||
@@ -154,7 +154,7 @@ class WebAgent(BaseAgent):
|
||||
if llm_name not in self._llms:
|
||||
raise ValueError(f"Unknown LLM: {llm_name}")
|
||||
|
||||
timestamp = datetime.now(datetime.timezone.utc)
|
||||
timestamp = datetime.now(timezone.utc)
|
||||
self._iteration_logger.log_iteration(timestamp, self._context, response)
|
||||
parse_result = self._parser.parse(timestamp, response)
|
||||
if isinstance(parse_result, Command):
|
||||
|
||||
Reference in New Issue
Block a user