支持上下文+装饰器的计时器

This commit is contained in:
SnowindMe
2025-04-12 22:25:13 +08:00
parent 739ca7e612
commit c60a080337
3 changed files with 62 additions and 38 deletions

View File

@@ -1,4 +1,3 @@
import time
from typing import List, Optional, Tuple, Union
import random
@@ -90,7 +89,7 @@ class ResponseGenerator:
sender_name=sender_name,
stream_id=message.chat_stream.stream_id,
)
logger.info(f"构建prompt时间: {t_build_prompt.human_readable()}")
logger.info(f"构建prompt时间: {t_build_prompt.human_readable}")
try:
content, reasoning_content, self.current_model_name = await model.generate_response(prompt)