openai / openai-quickstart-python

Python example app from the OpenAI API quickstart tutorial
https://platform.openai.com/docs/quickstart?context=python
MIT License
1.67k stars 1.31k forks source link

Updates packages to recent version #21

Closed maroskukan closed 5 months ago

maroskukan commented 1 year ago

This patch resolves #12 as well as updates remaining packages.

The following workflow was done:

pip3 list --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip3 install -U
pip3 freeze > requirements.txt

One exception is charset-normalizer which needs to stay at 2.1.1 and not latest 3.0.1 because of aiohttp 3.8.3 dependency.

It also fixes warning with Flask

'FLASK_ENV' is deprecated and will not be used in Flask 2.3. Use 'FLASK_DEBUG' instead.
jeffkile commented 1 year ago

I'm testing this now as I'm going through the tutorial and it seems to work for me as well. I just noticed one issue which I think may be related but I'm not sure: I get "Access to localhost was denied" when trying to access localhost:5000 - so the documentation may need to be updated to http://127.0.0.1:5000 under "Run the app" here: https://platform.openai.com/docs/quickstart/build-your-application

I'm running Python 3.8.2 on macOS 13.2 (22D49)