Fix error in "fixed" timestamps

This commit is contained in:
Niels Geens
2025-01-06 14:15:32 +01:00
parent 6669b7a682
commit e730eba58c
2 changed files with 4 additions and 2 deletions

2
run.sh
View File

@@ -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 \

View File

@@ -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):