Add debug logging to trace prompt sizes in worker
This commit is contained in:
@@ -159,6 +159,11 @@ class SwarmWorker:
|
|||||||
|
|
||||||
self._context_used = min(prompt_tokens + request.max_tokens, 131072) # Cap at reasonable max
|
self._context_used = min(prompt_tokens + request.max_tokens, 131072) # Cap at reasonable max
|
||||||
|
|
||||||
|
# Debug: Log the actual prompt size received
|
||||||
|
import logging
|
||||||
|
logger = logging.getLogger(__name__)
|
||||||
|
logger.info(f"🔍 WORKER {self.name}: Received prompt with {len(request.prompt)} chars, ~{prompt_tokens} tokens + {request.max_tokens} max = {self._context_used} context")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
start_time = time.time()
|
start_time = time.time()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user