Skip to content

Commit 154621c

Browse files
Jérémy Vancoilliejvancoillie
authored andcommitted
feat(aibundle): add support for the albert platform configuration
1 parent 4845bbd commit 154621c

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

src/ai-bundle/config/options.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@
2929
->children()
3030
->arrayNode('platform')
3131
->children()
32+
->arrayNode('albert')
33+
->children()
34+
->stringNode('api_key')->isRequired()->end()
35+
->stringNode('base_url')->isRequired()->end()
36+
->stringNode('http_client')
37+
->defaultValue('http_client')
38+
->info('Service ID of the HTTP client to use')
39+
->end()
40+
->end()
41+
->end()
3242
->arrayNode('anthropic')
3343
->children()
3444
->stringNode('api_key')->isRequired()->end()

src/ai-bundle/src/AiBundle.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
use Symfony\AI\Chat\Bridge\Meilisearch\MessageStore as MeilisearchMessageStore;
3939
use Symfony\AI\Chat\Bridge\Pogocache\MessageStore as PogocacheMessageStore;
4040
use Symfony\AI\Chat\MessageStoreInterface;
41+
use Symfony\AI\Platform\Bridge\Albert\PlatformFactory as AlbertPlatformFactory;
4142
use Symfony\AI\Platform\Bridge\Anthropic\PlatformFactory as AnthropicPlatformFactory;
4243
use Symfony\AI\Platform\Bridge\Azure\OpenAi\PlatformFactory as AzureOpenAiPlatformFactory;
4344
use Symfony\AI\Platform\Bridge\Cerebras\PlatformFactory as CerebrasPlatformFactory;

src/ai-bundle/tests/DependencyInjection/AiBundleTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2774,6 +2774,10 @@ private function getFullConfig(): array
27742774
'anthropic' => [
27752775
'api_key' => 'anthropic_key_full',
27762776
],
2777+
'albert' => [
2778+
'api_key' => 'albert-test-key',
2779+
'base_url' => 'https://albert.api.etalab.gouv.fr/v1',
2780+
],
27772781
'azure' => [
27782782
'my_azure_instance' => [
27792783
'api_key' => 'azure_key_full',

0 commit comments

Comments
 (0)