Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [8.2, 8.3, 8.4]
symfony: [^6.4, false]
php: [8.2, 8.3, 8.4, 8.5]
symfony: [false]
dependency: [stable]
include:
- { php: 8.2, symfony: ^6.4 , dependency: stable }
- { php: 8.4, symfony: ^7.4, dependency: highest }
- { php: 8.4, symfony: ^8.0, dependency: highest }
- { php: 8.4, symfony: false, dependency: highest }

env:
SYMFONY_REQUIRE: ${{ matrix.symfony }}
Expand Down
5 changes: 1 addition & 4 deletions src/OpenAIBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use OpenAI\Client;
use OpenAI\Contracts\ClientContract;
use OpenAI\Factory;
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
use Symfony\Component\Config\Definition\Configurator\DefinitionConfigurator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
Expand All @@ -23,13 +22,11 @@ final class OpenAIBundle extends AbstractBundle
public function configure(DefinitionConfigurator $definition): void
{
$root = $definition->rootNode();
assert($root instanceof ArrayNodeDefinition);
$children = $root->children();
$children
->scalarNode('api_key')
->defaultValue('%env(OPENAI_API_KEY)%')
->info('OpenAI API Key used to authenticate with the OpenAI API')
->isRequired();
->info('OpenAI API Key used to authenticate with the OpenAI API');
$children
->scalarNode('organization')
->info('OpenAI API Organization used to authenticate with the OpenAI API')
Expand Down
Loading