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

ClientSession should be used as a context decorator

Open WhyNotHugo opened this issue 2 years ago • 0 comments

This ensures that the session is closed even if an exception is raised.

WhyNotHugo avatar Mar 05 '23 22:03 WhyNotHugo