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

The official Python library for the OpenAI API

Results 204 openai-python issues
Sort by recently updated
recently updated
newest added

### Describe the bug I had this problem,error: subprocess-exited-with-error, when I installing. My python is 3.9.16 pip is 23.0 log: ``` Looking in indexes: http://mirrors.cloud.aliyuncs.com/pypi/simple/ Collecting openai Using cached http://mirrors.cloud.aliyuncs.com/pypi/packages/35/41/eefdec12990436f746e39a16ccfcfbd8693cd8a5762014f27ec216d2487d/openai-0.26.5.tar.gz...

bug

### Describe the bug When I use request_timeout on a text completion, it works fine: `openai.Completion.create(prompt="1,2,3,4,", request_timeout=10.0)` But when I try to do it with an image creation, it fails:...

bug

### Describe the bug Versions >= v0.26.4 fail to install on fresh Ubuntu 22.04 container w/ Kernel `Linux [redacted]-2017 5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 x86_64...

bug

### Describe the bug I am attempting to transcribe a file with an accompanying prompt, however it appears to have no effect at all on the output. This is a...

question

### Describe the bug [ERROR][2023-03-04 18:25:20][chat_gpt_bot.py:68] - Invalid URL (POST /v1/chat/completions) Traceback (most recent call last): File "/opt/chatgpt-on-wechat/bot/chatgpt/chat_gpt_bot.py", line 44, in reply_text response = openai.ChatCompletion.create( File "/usr/local/lib/python3.9/site-packages/openai/api_resources/chat_completion.py", line 25, in...

bug

### Describe the bug Given `reply = response["choices"][0]["message"]["content"]`, Pyright throws linting errors: ``` chatbot.py 49 27 error reportGeneralTypeIssues "__getitem__" method not defined on type "Generator[Unknown | list[Unknown] | dict[Unknown, Unknown],...

bug

### Describe the feature or improvement you're requesting `setup.py` + `setup.cfg` is an outdated way of building Python projects. The configuration can be moved to `pyproject.toml` for consistency. [hatch](https://github.com/pypa/hatch) is...

### Describe the feature or improvement you're requesting I would like to be able to manage multiple users in the ChatGPT. The idea is for the API to understand who...

### Describe the feature or improvement you're requesting Thank you for your great work in providing an API. What seems strangely confusing is that the main use of a conversation_id...

Updated `Backtranslation_of_SQL_queries.py` to match the conventions of the other examples files that point to https://github.com/openai/openai-cookbook.