Skip to content

Commit 7dbe30e

Browse files
committed
feature #351 [AI Bundle][Cerebras] Add platform configuration (muqeetsyed)
This PR was merged into the main branch. Discussion ---------- [AI Bundle][Cerebras] Add platform configuration | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | Docs? | no | Issues | #16 | License | MIT - Added new config node `cerebras` with required `api_key` in options.php - Updated AiBundleTest to include full config for cerebras Commits ------- b34d32c Add cerebras platform configuration option
2 parents d641369 + b34d32c commit 7dbe30e

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)