Skip to content

About

Python examples following the OpenAI Dashboard and Playground, updated for the current OpenAI SDK, plus original experiments.

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

83 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenAI-Cookbook

License Languages Contributions

This repository follows examples and ideas from the OpenAI Dashboard and the Playground. Also includes my own experiments.

Notes

  • Most markdown files were generated with the help of LLMs.
  • This project is being updated to align with changes introduced in newer versions of the OpenAI Python SDK. These updates ensure compatibility with the latest API endpoints, take advantage of new features, and follow best practices recommended by OpenAI.

Migration Details

While following the OpenAI Python migration guide, I encountered an issue:

  • The openai migrate command didn't work as expected and pointed to an incorrect URL.

Steps I used to resolve the migration issue:

  1. Install Grit by running:

    curl -fsSL https://docs.grit.io/install | bash
  2. Use Grit to apply the OpenAI migration:

    source $HOME/.grit/bin/env
    grit apply openai

These steps successfully resolved the migration issue.


About

Python examples following the OpenAI Dashboard and Playground, updated for the current OpenAI SDK, plus original experiments.

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages