[Bugfix] Only print out chat template when supplied (#13444)

This commit is contained in:
Yuan Tang 2025-02-18 00:43:31 -05:00 committed by GitHub
parent 00294e1bc6
commit a1074b3efe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -797,7 +797,9 @@ async def init_app_state(
state.log_stats = not args.disable_log_stats
resolved_chat_template = load_chat_template(args.chat_template)
logger.info("Using supplied chat template:\n%s", resolved_chat_template)
if resolved_chat_template is not None:
logger.info("Using supplied chat template:\n%s",
resolved_chat_template)
state.openai_serving_models = OpenAIServingModels(
engine_client=engine_client,