yomeva/open-ai-bundle
最新稳定版本:1.0.2
Composer 安装命令:
composer require yomeva/open-ai-bundle
包简介
This bundles allows you to make calls to the OpenAI APIs.
README 文档
README
Make sure Composer is installed globally, as explained in the installation chapter of the Composer documentation.
Step 1: Download the Bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
composer require yomeva/openai-bundle
Step 2: Check if the Bundle is enabled, and if not, enable it
By adding it to the list of registered bundles
in the config/bundles.php file of your project:
// config/bundles.php return [ // ... Yomeva\OpenAiBundle\YomevaOpenAiBundle::class => ['all' => true], ];
Step 3: Add a OpenAI API key env var to a config file
Define the YAML config as follows and use an environment variable
# config/packages/yomeva_open_ai.yaml yomeva_open_ai: api_key: '%env(resolve:OPEN_AI_API_KEY)%'
Step 4: Add a staging project OpenAI API key to a .env.test.local file for PHPUnit (data of this OpenAI project can be lost)
OPEN_AI_API_TEST_KEY=your-staging-key
统计信息
- 总下载量: 104
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-10-04