From 1d88dacf9f9656b78211dae045227096e47d5795 Mon Sep 17 00:00:00 2001 From: Shanshan Shen <467638484@qq.com> Date: Mon, 7 Apr 2025 19:11:51 +0800 Subject: [PATCH] [V1][Platform] Add `supports_structured_output()` method to Platform (#475) ### What this PR does / why we need it? Add `supports_structured_output()` method to Platform, find more details at https://github.com/vllm-project/vllm/pull/16148. Signed-off-by: shen-shanshan <467638484@qq.com> --- vllm_ascend/platform.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vllm_ascend/platform.py b/vllm_ascend/platform.py index baedd98..8cc8817 100644 --- a/vllm_ascend/platform.py +++ b/vllm_ascend/platform.py @@ -164,3 +164,7 @@ class NPUPlatform(Platform): model configuration. """ return True + + @classmethod + def supports_structured_output(cls) -> bool: + return True