[Feature][Frontend] Add DeepSeek-V4 FIM completion rendering (#44229)

Signed-off-by: QwertyJack <7554089+QwertyJack@users.noreply.github.com>
Co-authored-by: QwertyJack <7554089+QwertyJack@users.noreply.github.com>
Co-authored-by: Chauncey <chaunceyjiang@gmail.com>
This commit is contained in:
jack
2026-09-23 13:02:00 +00:00
committed by GitHub
co-authored by QwertyJack Chauncey
parent 157bcb7c48
commit d95a896ea6
5 changed files with 243 additions and 7 deletions
+4
View File
@@ -193,6 +193,10 @@ class BaseRenderer(ABC, Generic[_T]):
return tokenizer
def render_completion_suffix(self, prompt: str, suffix: str) -> str | None:
"""Render OpenAI completion suffix input when the renderer supports FIM."""
return None
def _decode(self, *args, **kwargs):
return self.get_tokenizer().decode(*args, **kwargs)