feat:可以对不同chat自定义一段额外prompt

This commit is contained in:
SengokuCola
2025-11-05 00:35:16 +08:00
parent a4d43e1aee
commit 03e06c282c
7 changed files with 329 additions and 76 deletions

View File

@@ -444,7 +444,7 @@ def _default_normal_response_parser(
choice0 = resp.choices[0]
reason = getattr(choice0, "finish_reason", None)
if reason and reason == "length":
print(resp)
# print(resp)
_model_name = resp.model
# 统一日志格式
logger.info(