Ted Sanders

Results 149 comments of Ted Sanders
trafficstars

Fixed in https://github.com/openai/openai-cookbook/pull/579. Closing PR. Thanks for flagging!

(Made a couple of other changes, including +2 tokens to +1, as \n\n is a single-token in the GPT-3 encoding.)

As of last month, there's an updated version: https://github.com/openai/openai-cookbook/blob/main/examples/Unit_test_writing_using_a_multi-step_prompt.ipynb You can also change the model from `code-davinci-002` to `text-davinci-002`.

Not the same, but should be similar. It's the same base model: https://platform.openai.com/docs/model-index-for-researchers

code-davinci-002 is no longer available to the general public. It's available to researchers only. It will be shut off in 2024. Use the new version of the notebook.

Which notebook? If a package is missing, you'll need to install it.

Will merge now. Just got back from a two-week vacation. :)

What would make this guide better or more discoverable? https://github.com/openai/openai-cookbook/blob/main/examples/How_to_stream_completions.ipynb

Here you go: ``` # imports import openai # for OpenAI API calls # a ChatCompletion request response = openai.ChatCompletion.create( model='gpt-3.5-turbo', messages=[ {'role': 'user', 'content': "What's 1+1? Answer in one...