mirror of
https://github.com/kennethreitz/instructor.git
synced 2026-06-05 22:50:18 +00:00
add done
This commit is contained in:
@@ -124,5 +124,6 @@ async def extract(question: Question, openai_key=Depends(get_api_key)):
|
||||
}
|
||||
resp_json = json.dumps(resp)
|
||||
yield f"data: {resp_json}"
|
||||
yield "data: [DONE]"
|
||||
|
||||
return StreamingResponse(generate(), media_type="text/event-stream")
|
||||
|
||||
Reference in New Issue
Block a user