修改语法错误

This commit is contained in:
Tian jianyong 2025-12-24 19:42:18 +08:00
parent 0a2cc4f474
commit 8ff6433b8d

View File

@ -456,7 +456,8 @@ def stream_cached_response(cached_answer: str, chat_id: str, start_time: float,
yield end_message
logger.info(f"[CACHE_STREAM {stream_end_time:.3f}] 🏁 缓存流式响应完成")
logger.info(f"[CACHE_STREAM {stream_end_time:.3f}] 📊 缓存答案长度: {len(cached_answer)} 字符")
if cached_answer:
logger.info(f"[CACHE_STREAM {stream_end_time:.3f}] 📊 缓存答案长度: {len(cached_answer)} 字符")
total_time = time.perf_counter() - start_time
logger.info(f'[CACHE_STREAM {time.time():.3f}] ⏱️ Total Cache Stream Duration ({chat_id}): {total_time:.3f}s')