Closed zhaochenyang20 closed 1 year ago
BTW, there are actually more useful parameters for openai.ChatCompletion.acreate
. Adding them would be better. 🤔
Thanks @zhaochenyang20 ! Please send a pull request and I'll review it. If possible it would be nice if you could send it for both chat_completion
and completion
Sure. I may have time to do this this weekend. 😂
BTW, there is actually no TimeoutError
🤔😂
module 'openai.error' has no attribute 'TimeoutError'
Here goes the PR: https://github.com/zeno-ml/zeno-build/pull/170
Fixed by #171
https://github.com/zeno-ml/zeno-build/blob/3674429930e8fe17f23ed9d91c2b5307fb9ed668/zeno_build/models/providers/openai_utils.py#L113
I was using
zeno
to call OpenAI API in a batch. I find this function could be modified to a better form: