Closed jxnl closed 1 year ago
@jxnl What version of PromptLayer are you using?
I just ran this:
async def call():
response = await openai.Completion.acreate(
engine="davinci",
prompt=prompt,
stream=True,
)
return response
async def main():
stream_response = await call()
async for s in stream_response:
print(s)
asyncio.run(main())
and it worked for me
wow ok. i was in the wrong virtual env when i ran this.. lesson learned Sorry about that!
when running an
acreate
withstreaming=true
ran into a serialization issue.