mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-04-20 14:28:54 +00:00
@@ -171,11 +171,6 @@ async def stream_generate_chat_completion(
|
||||
# Break if the generation is finished
|
||||
if "finish_reason" in generation:
|
||||
break
|
||||
|
||||
# Yield a finish response on successful generation
|
||||
# finish_response = _create_stream_chunk(const_id, finish_reason="stop")
|
||||
|
||||
# yield finish_response.model_dump_json()
|
||||
except CancelledError:
|
||||
# Get out if the request gets disconnected
|
||||
|
||||
|
||||
@@ -75,9 +75,6 @@ async def stream_generate_completion(data: CompletionRequest, model_path: pathli
|
||||
if "finish_reason" in generation:
|
||||
yield "[DONE]"
|
||||
break
|
||||
|
||||
# Yield a finish response on successful generation
|
||||
# yield "[DONE]"
|
||||
except CancelledError:
|
||||
# Get out if the request gets disconnected
|
||||
|
||||
|
||||
Reference in New Issue
Block a user