fix webchat

Former-commit-id: ba10d54bf9
This commit is contained in:
hiyouga
2024-11-02 21:04:18 +08:00
parent c2766af6f4
commit 604f4005c9
2 changed files with 3 additions and 4 deletions

View File

@@ -144,8 +144,8 @@ class WebChatModel(ChatModel):
messages,
system,
tools,
images=[image],
videos=[video],
images=[image] if image else None,
videos=[video] if video else None,
max_new_tokens=max_new_tokens,
top_p=top_p,
temperature=temperature,