Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AllentDan committed Oct 31, 2023
1 parent 5d6fdc1 commit 28999a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lmdeploy/serve/gradio/turbomind_coupled.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ async def chat_stream_local(
instruction,
session_id,
stream_response=True,
sequence_start=(len(state_chatbot) == 1)):
sequence_start=(len(state_chatbot) == 1),
sequence_end=False):
response = outputs.response
if outputs.finish_reason == 'length':
gr.Warning('WARNING: exceed session max length.'
Expand Down

0 comments on commit 28999a7

Please sign in to comment.