umarbutler/persist-cache

`openai.AsyncCompletions.create` is not recognised as an asynchronous method

umarbutler opened this issue · 1 comments

As discussed in this issue on the openai-python GitHub project and this issue on the cpython GitHub project, inspect.iscoroutinefunction, which persist-cache relies upon to detect asynchronous functions and methods, is incapable of recognising openai.AsyncCompletions.create as an asynchronous method.

Fixed by fe7aa6c, available in v0.1.1.