From c73095e91d0600547ba3099f985cdaf6846c3ad9 Mon Sep 17 00:00:00 2001 From: biondizzle Date: Sat, 28 Mar 2026 09:08:37 +0000 Subject: [PATCH] Remove hardcoded Redis URL from conversation-runner.php - Let index.php handle REDIS_URL from .env - No need to pass it through subprocess environment --- conversation-runner.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/conversation-runner.php b/conversation-runner.php index 7460d8b..a825da8 100644 --- a/conversation-runner.php +++ b/conversation-runner.php @@ -7,9 +7,11 @@ * * Usage: php conversation-runner.php * - * Environment variables (optional): + * Environment variables (passed to index.php): * API_BASE_URL — Override endpoint (default: from conversation file) * MAX_CONTEXT_TOKENS — Override context limit (default: from conversation file) + * + * Note: REDIS_URL, VLLM_URL, etc. are read from .env by index.php */ require __DIR__ . '/vendor/autoload.php'; @@ -22,9 +24,6 @@ use ContextPaging\TokenCounter; $conversationFile = __DIR__ . '/conversations/coding-session.json'; -// Redis URL for caching (optional but recommended for persistence) -$redisUrl = getenv('REDIS_URL') ?: 'rediss://default:AVNS_HwDuEERQhl1L2cirYGC@vultr-prod-779ce310-b845-4091-97a5-96750a5b8c80-vultr-prod-a12a.vultrdb.com:16752'; - // ----------------------------------------------------- // Load conversation state // ----------------------------------------------------- @@ -138,7 +137,6 @@ $indexPhp = __DIR__ . '/index.php'; $env = [ 'API_BASE_URL' => $conversation['endpoint'], 'MAX_CONTEXT_TOKENS' => (string) $conversation['max_context'], - 'REDIS_URL' => $redisUrl, ]; // Build the command