From 86ec93ce53af9f3593c6c172f1a9cf89d578d9ed Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Tue, 18 Mar 2025 10:30:49 +0100 Subject: [PATCH] don't look back the whole day --- trai.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trai.sh b/trai.sh index 72d1a3b2..2ab07e7a 100755 --- a/trai.sh +++ b/trai.sh @@ -15,7 +15,7 @@ fi model_pulled=$(docker exec -it ollama ollama pull $MODEL) # Assuming the log content is obtained from your Docker containers -logs=$(docker compose logs --tail 10000 $(cat /root/rpc/$1.yml | yaml2json - | jq '.services' | jq -r 'keys[]' | tr '\n' ' ') | grep -iE "info" | tail -n 100) +logs=$(docker compose logs --since "1h" --tail 10000 $(cat /root/rpc/$1.yml | yaml2json - | jq '.services' | jq -r 'keys[]' | tr '\n' ' ') | grep -iE "info" | tail -n 100) # Create the messages array with the system prompt first, then log lines as user messages messages=(