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

The official Python library for the OpenAI API

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

### Please move to discussions, I mistakenly opened an issue. How about a concept where it's not us asking the questions to the AI, but reversing the process of it,...

### Describe the bug Tiktoken (https://github.com/openai/tiktoken/blob/3e8620030c68d2fd6d4ec6d38426e7a1983661f5/tiktoken/model.py#L14) shows ChatGPT's API, `gpt-3.5-turbo`, tiktoken encoder to be `cl100k_base`; however, when using the openai package if I use the `cl100k_base` encoder to truncate my...

bug

This was failing before: ``` openai api chat_completions.create -m gpt-3.5-turbo --message user "tell me a joke" --stream ```

### Describe the bug Lots of existing usernames contain @ as namespace and prefixing. Complete understand why this is defined narrowly, but you are pushing a bunch of work on...

bug

Due to the fact that the openai cli cannot function properly in some poor network environments without a proxy, add a '--proxy' parameter to overcome this difficulty.

### Describe the bug When `openai.Embedding.acreate` gets called many times, it prints a lot to STDERR, like so: ``` INFO:openai:message='OpenAI API response' path=https://api.openai.com/v1/engines/text-embedding-ada-002/embeddings processing_ms=350 request_id=681e326f4d3241ef9427e95c9eede485 response_code=200 INFO:openai:message='OpenAI API response' path=https://api.openai.com/v1/engines/text-embedding-ada-002/embeddings...

bug

### Describe the feature or improvement you're requesting I have this tool I made which I'm using day to day now: https://github.com/backus/ai.sh It is super useful and I actually like...

enhancement
CLI

### Describe the bug Transcription function cannot handle response format specifications of "text" or "vtt". When those are specified, an exception is raised. ### To Reproduce 1. Using Python, obtain...

bug

Fix https://github.com/openai/openai-python/issues/283.

I have a few suggested changes for `chatml.md`: 1. `Note this format...` -> `However, this format...` (alternatively, `Note that this format...`). 2. `...similar to a SQL injections` -> `...similar to...