openai-cookbook icon indicating copy to clipboard operation
openai-cookbook copied to clipboard

Speeding up Python API calls?

Open bbence84 opened this issue 1 year ago • 2 comments

Is there any way to speed up the a sequence of completion API calls to the GPT3 models? I have a use case where the response of the completion API should be returned very quickly, but I need the full reponse, so streaming would not help here. Is the python API maybe reusing the HTTP connection or auth tokens accross multiple API calls? Is there maybe a workaround? I am also fine changing the python package files locally for a while. :slight_smile: Thanks!

bbence84 avatar Jan 01 '23 14:01 bbence84