rikhuijzer / ata

Ask the Terminal Anything (ATA): ChatGPT in the terminal
MIT License
274 stars 17 forks source link

Support `gpt-3.5-turbo` #23

Closed rikhuijzer closed 1 year ago

rikhuijzer commented 1 year ago

Support the newly released chat API (released 1st of March 2023): gpt-3.5-turbo. This model is better than the text models according to Greg Brockman. Also, gpt-3.5-turbo is 10 times cheaper than text-davinci-003 per token. Due to the increased complexity in supporting text models and chat models and me having only so much time in the day, this PR drops support for text models such as text-davinci-003. To support those again, tests should be added to the repository which mock both the OpenAI API and stdout (see https://github.com/kkawakam/rustyline/issues/652#issuecomment-1421314307 for a stdout mock example).

This PR is partially based on #21.