openai / web-crawl-q-and-a-example

Learn how to crawl your website and build a Q/A bot with the OpenAI API
https://platform.openai.com/docs/tutorials/web-qa-embeddings
271 stars 181 forks source link

Drop usage of deprecated model text-davinci-003 #8

Open russellb opened 8 months ago

russellb commented 8 months ago

This is the minimum required change that I found necessary to get this example to work. According to the deprecations page 1, text-davinci-003 was shut down on 2024-01-04. The recommended replacement is gpt-3.5-turbo-instruct, which is used in this change.

Signed-off-by: Russell Bryant russell.bryant@gmail.com

russellb commented 8 months ago

If #7 is merged, this PR can be dropped since #7 includes this change. I submitted this anyway since I found this was the minimum change necessary to get it working for me.