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