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

When a global session wasn't set in `openai.aiosession`, we would create a temp `ClientSession` on the fly. Unfortunately, this session wasn't scoped correctly since it was closed upon returning from...

I'm not sure this is an issue with the python api per se. When using the completion api to generate the next line of a poem using davinci, the api...

#171 Note that as per the issue above, even after the two fixes below this test still fails, as the 2nd chunk of the stream never arrives

See stack trace below ``` Traceback (most recent call last): File "/Users/nuno/dev/concat/server-py/concat/conversation.py", line 75, in handle_conversation await run File "/Users/nuno/dev/concat/server-py/concat/agent/openai/openai.py", line 122, in __call__ msg = await ctx.stream_message_async( File "/Users/nuno/dev/concat/server-py/concat/context.py",...

``` bash$ openai api fine_tunes.create -t ./train_test_prepared.jsonl -m davinci Upload progress: 100%|██████████████████████████████████████████████████████████████████████████████| 112/112 [00:00

Hi, This is a simple example that return difference response between request from `openai` package and through the HTTP request ``` Human: "Give me an example sentence for the word:...

Fixed API URL in wandb_logger.py as the logs are now stored in https://api.openai.com/v1/files/$RESULTS_FILE_ID/content according to documentation.

See the last line, looks like the stream iterator might be breaking up parts where it shouldn't? Unless it's an API issue. cc @ddeville ``` Traceback (most recent call last):...

Fix for the following error: ```traceback Traceback (most recent call last): File "/Users/me/Desktop/Projects/project/.venv/bin/openai", line 8, in sys.exit(main()) File "/Users/me/Desktop/Projects/project/.venv/lib/python3.10/site-packages/openai/_openai_scripts.py", line 63, in main args.func(args) File "/Users/me/Desktop/Projects/project/.venv/lib/python3.10/site-packages/openai/cli.py", line 527, in sync...