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