client icon indicating copy to clipboard operation
client copied to clipboard

completions create: support stream?

Open gehrisandro opened this issue 2 years ago • 5 comments

see: https://beta.openai.com/docs/api-reference/completions/create#completions/create-stream

should we support stream response?

gehrisandro avatar Nov 11 '22 19:11 gehrisandro

+1 - This would be a great addition.

isotropicdesign avatar Dec 17 '22 03:12 isotropicdesign

@gehrisandro What would this represent in terms of code changes?

nunomaduro avatar Dec 17 '22 22:12 nunomaduro

In the current draft we trying to save the same CreateResponse object which allows to iterate over himself when stream response was requested.

slavarazum avatar Jan 13 '23 18:01 slavarazum

I switch this package instead https://github.com/orhanerday/open-ai#stream-example

utfd avatar Jan 15 '23 08:01 utfd

@nunomaduro some news on this functionality (Streaming)?

CaReS0107 avatar Mar 13 '23 14:03 CaReS0107