mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-18 16:55:14 +02:00
send done for textcompletions too
This commit is contained in:
+1
-1
@@ -691,7 +691,7 @@ class ServerRequestHandler(http.server.SimpleHTTPRequestHandler):
|
||||
await asyncio.sleep(0.02) #this should keep things responsive
|
||||
|
||||
if streamDone:
|
||||
if api_format == 4: # if oai chat, send last [DONE] message consistent with openai format
|
||||
if api_format == 4 or api_format == 3: # if oai chat, send last [DONE] message consistent with openai format
|
||||
await self.send_oai_sse_event('[DONE]')
|
||||
break
|
||||
except Exception as ex:
|
||||
|
||||
Reference in New Issue
Block a user