openai / openai-quickstart-python

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

Update Python quickstart to use Chat Completions (with streaming) #72

Closed logankilpatrick closed 7 months ago

logankilpatrick commented 8 months ago

This is a first pass at a comprehensive update on the OpenAI python quickstart. The new update does the following:

A quick example demo of what was made:

https://github.com/openai/openai-quickstart-python/assets/35577566/5124dde1-378c-49da-8e42-022d2dc08f9b

logankilpatrick commented 8 months ago

Open TODO, I think it makes sense to keep the previous completions example and move it to the completions folder ( I will update it to use the right SDK version, model, etc) since we technically still support the old Completions endpoint.