openai-cookbook README

The project's README from github.com/openai/openai-cookbook. As one markdown file: README.md.

OpenAI Cookbook Logo

✨ Navigate at cookbook.openai.com

Example code and guides for accomplishing common tasks with the OpenAI API. To run these examples, you'll need an OpenAI account and associated API key (create a free account here). Set an environment variable called OPENAI_API_KEY with your API key. Alternatively, in most IDEs such as Visual Studio Code, you can create an .env file at the root of your repo containing OPENAI_API_KEY=<your API key>, which will be picked up by the notebooks.

Most code examples are written in Python, though the concepts can be applied in any language.

For other useful tools, guides and courses, check out these related resources from around the web.

License

MIT License

openai-cookbook (openai/openai-cookbook)

Searching Database…

这是什么?这是一组示例代码和指南,用于完成 OpenAI API 的常见任务,涵盖提示词编写、嵌入、函数调用和检索等内容。
这是一个函数库,还是一组示例笔记本?这是一本由独立的 Jupyter 笔记本和指南组成的代码手册,不是可以安装的库或框架。
我该如何运行这些示例?克隆仓库并打开笔记本即可;大多数示例使用 Python 编写,可以在 Jupyter 或 VS Code 等 IDE 中运行。
我需要 OpenAI API 密钥吗?需要。你需要一个 OpenAI 账户和 API 密钥,可以通过环境变量 OPENAI_API_KEY 或本地的 .env 文件进行设置。
有没有可以在线浏览的版本,省得自己翻看笔记本?有,这本手册还发布了可浏览的网站,方便查找和导航。
示例只能用 Python 吗?大多数示例使用 Python 编写,但其中的基本概念和 API 调用可以应用于任何编程语言。
这些示例涵盖哪些任务?涵盖 OpenAI API 的常见任务,例如提示词技巧、嵌入以及其他集成模式,每个任务都整理在独立的笔记本中。
仓库除了自带的示例外,还指向其他资源吗?有,它还链接了网上的相关工具、指南和课程,供你进一步学习。
Creator
openai
Size
955.5 MB
Stars
76.7K
Updated
CommitOct 09
Age
4y
Commits · 90 Days