diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 87668e5..495709a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 }} diff --git a/src/OpenAIBundle.php b/src/OpenAIBundle.php index 9d78a06..484b51a 100644 --- a/src/OpenAIBundle.php +++ b/src/OpenAIBundle.php @@ -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; @@ -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')