We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ead2110 commit ea10dd9Copy full SHA for ea10dd9
vllm/entrypoints/chat_utils.py
@@ -448,6 +448,9 @@ def resolve_chat_template_content_format(
448
model_config: ModelConfig,
449
trust_remote_code: Optional[bool] = None,
450
) -> _ChatTemplateContentFormat:
451
+ if given_format != "auto":
452
+ return given_format
453
+
454
detected_format = _resolve_chat_template_content_format(
455
chat_template,
456
tools,
@@ -461,7 +464,7 @@ def resolve_chat_template_content_format(
461
464
detected_format=detected_format,
462
465
)
463
466
- return detected_format if given_format == "auto" else given_format
467
+ return detected_format
468
469
470
0 commit comments