openai / openai-quickstart-python

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

Added GPT-3.5-turbo support #31

Closed sourasis closed 5 months ago

sourasis commented 1 year ago

Hi, I was explaining some AI new comers to understand how the new GPT-3.5-turbo works and gave this python tutorial to learn from. But then realised that the new model isn't supported by the tutorial yet. Hence added GPT-3.5-turbo support to it.

User can run a demo of new model on http:/localhost:5000/turbo with exactly the same behaviour as the earlier tutorial for text-davinci-003. Earlier one continue to be available as before at http:/localhost:5000

README.md will need an update too. Let me know if you want me to push an update for that as well.

logankilpatrick commented 5 months ago

Hey! Thanks for this, I have an update on a PR which should be landing soon.