https://github.com/tdiprima/openai-cookbook
A collection of recipes and ideas inspired by OpenAI's dashboard and playground, with additional experiments and examples.
https://github.com/tdiprima/openai-cookbook
openai openai-api
Last synced: 5 months ago
JSON representation
A collection of recipes and ideas inspired by OpenAI's dashboard and playground, with additional experiments and examples.
- Host: GitHub
- URL: https://github.com/tdiprima/openai-cookbook
- Owner: tdiprima
- License: mit
- Created: 2024-11-21T16:23:44.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-04-28T18:02:59.000Z (5 months ago)
- Last Synced: 2025-04-28T19:22:19.757Z (5 months ago)
- Topics: openai, openai-api
- Language: Python
- Homepage:
- Size: 1.47 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OpenAI-Cookbook


This repository mainly follows examples and ideas from the [OpenAI Dashboard](https://platform.openai.com/chat-completions) and the [Playground](https://platform.openai.com/playground/chat?models=gpt-4o).
## 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](https://github.com/openai/openai-python/discussions/742), 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:
```sh
curl -fsSL https://docs.grit.io/install | bash
```2. Use Grit to apply the [OpenAI migration](https://github.com/openai/openai-python/issues/1838#issuecomment-2457972838):
```sh
source $HOME/.grit/bin/env
grit apply openai
```These steps successfully resolved the migration issue.