Skip to content

Commit b34d32c

Browse files
committed
Add cerebras platform configuration option
1 parent b9bfe58 commit b34d32c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/ai-bundle/config/options.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@
7676
->scalarNode('host_url')->defaultValue('http://127.0.0.1:11434')->end()
7777
->end()
7878
->end()
79+
->arrayNode('cerebras')
80+
->children()
81+
->scalarNode('api_key')->isRequired()->end()
82+
->end()
83+
->end()
7984
->end()
8085
->end()
8186
->arrayNode('agent')

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,9 @@ private function getFullConfig(): array
323323
'ollama' => [
324324
'host_url' => 'http://127.0.0.1:11434',
325325
],
326+
'cerebras' => [
327+
'api_key' => 'cerebras_key_full',
328+
],
326329
],
327330
'agent' => [
328331
'my_chat_agent' => [

0 commit comments

Comments
 (0)