Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis2054 authored Dec 6, 2023
1 parent 0b33ff0 commit 6d8c8a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ Just look for the Dolphin 🐬 and enjoy your ride into the future of AI!
You can run these notebooks on cloud platforms like [Google Colab](https://colab.research.google.com/) or your local machine. Note that some chapters require a GPU to run in a reasonable amount of time, so we recommend one of the cloud platforms as they come pre-installed with CUDA.

## Getting started with OpenAI API
December 6,2023 update
December 6,2023. The notebooks in this repository were updated. **Note**: Watch for more changes in 2024 Q1.
- As of January 4,2024, [OpenAI deprecations](https://platform.openai.com/docs/deprecations) apply to 'davinci'. The recommended replacement is 'davinci-002'
- Google Colab: Cohere(language functions) and tiktoken(BPE tokenizer) required to install OpenAI(!pip install tiktoken and !pip install --upgrade cohere)
- API call changed from openai.Completion.create to openai.completions.create with client= [YOUR OPENAI CLIENT]
- API call changed from engine=[model name] to model=[model name]
- Response print changed from r=response[“choice”][0] \n print(r[“text”]) to print(response.choices[0].text)
- Response object is evolving. Recommendation: first print response, then analyze object to then access what you need.

### Running on a cloud platform or in your environment

Expand Down

0 comments on commit 6d8c8a2

Please sign in to comment.