mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-12-15 03:10:35 +08:00
@@ -141,7 +141,14 @@ class WebChatModel(ChatModel):
|
||||
chatbot[-1][1] = ""
|
||||
response = ""
|
||||
for new_text in self.stream_chat(
|
||||
messages, system, tools, image, video, max_new_tokens=max_new_tokens, top_p=top_p, temperature=temperature
|
||||
messages,
|
||||
system,
|
||||
tools,
|
||||
images=[image],
|
||||
videos=[video],
|
||||
max_new_tokens=max_new_tokens,
|
||||
top_p=top_p,
|
||||
temperature=temperature,
|
||||
):
|
||||
response += new_text
|
||||
if tools:
|
||||
|
||||
Reference in New Issue
Block a user