首页
开源项目
搜索 TinyTools
openai-cookbook全面实用指南和代码示例
67.2k
在线演示
Github仓库
Gitee仓库
> ✨ 访问 [cookbook.openai.com](https://cookbook.openai.com) 使用 [OpenAI API](https://platform.openai.com/docs/introduction) 完成常见任务的示例代码和指南。要运行这些示例,您需要一个 OpenAI 帐户和关联的 API 密钥([在此处创建免费帐户](https://platform.openai.com/signup))。使用您的 API 密钥设置一个名为 `OPENAI_API_KEY` 的环境变量。或者,在大多数 IDE(例如 Visual Studio Code)中,您可以在代码库的根目录下创建一个 `.env` 文件,其中包含 `OPENAI_API_KEY=<您的 API 密钥>`,该文件将被 Notebook 读取。 大多数代码示例都是用 Python 编写的,但这些概念可以应用于任何语言。 如需其他有用的工具、指南和课程,请查看这些[来自网络的相关资源](https://cookbook.openai.com/related_resources)。 ## 精选Cookbook  ## 流行Cookbook  ## License MIT License
tabler/tabler is licensed under the
MIT License
A short and simple permissive license with conditions only requiring preservation of copyright and license notices. Licensed works, modifications, and larger works may be distributed under different terms and without source code.
Permissions
Commercial use
Modification
Distribution
Private use
Limitations
Liability
Warranty
Conditions
License and copyright notice