[Bugfix][Beam Search] Respect skip_special_tokens during decoding (#56211)

Signed-off-by: lxy-alexander <lxy_alexander@outlook.com>
Co-authored-by: OpenAI Codex <noreply@openai.com>
This commit is contained in:
Alexander Lee
2026-09-14 05:49:44 +00:00
committed by GitHub
co-authored by OpenAI Codex
parent 73d2a8cf86
commit 10e8d5614c
6 changed files with 46 additions and 3 deletions
@@ -303,6 +303,7 @@ class CompletionRequest(OpenAIBaseModel):
temperature=temperature,
length_penalty=self.length_penalty,
include_stop_str_in_output=self.include_stop_str_in_output,
skip_special_tokens=self.skip_special_tokens,
)
def extract_structured_outputs(self) -> StructuredOutputsParams | None: