ask-openai-0.1.7
توضیحات
Explain exceptions using OpenAI / GPT-3
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | ask-openai-0.1.7 |
| نام | ask-openai |
| نسخه کتابخانه | 0.1.7 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | RA |
| ایمیل نویسنده | numpde@null.net |
| آدرس صفحه اصلی | https://github.com/numpde/ask_openai |
| آدرس اینترنتی | https://pypi.org/project/ask-openai/ |
| مجوز | - |
This package `ask_openai` provides a single minimal implementation
of a function decorator `ask`.
If the decorated function raises an error,
the decorator asks OpenAI / GPT-3 to explain it to you.
Use as follows:
```Python
import os
from ask_openai import ask
ask = ask(api_key=os.environ['OPENAI_API_KEY'], logger=print)
@ask
def f(x):
return 1 / 0
```
This will print something like:
```commandline
OpenAI explanation: Division by zero is an error because a number cannot be divided by 0.
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7,<4.0 | Python |
نحوه نصب
نصب پکیج whl ask-openai-0.1.7:
pip install ask-openai-0.1.7.whl
نصب پکیج tar.gz ask-openai-0.1.7:
pip install ask-openai-0.1.7.tar.gz