File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed
tests/DependencyInjection Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 51
51
->scalarNode ('api_key ' )->isRequired ()->end ()
52
52
->end ()
53
53
->end ()
54
+ ->arrayNode ('vertexai ' )
55
+ ->children ()
56
+ ->scalarNode ('location ' )->isRequired ()->end ()
57
+ ->scalarNode ('project_id ' )->isRequired ()->end ()
58
+ ->end ()
59
+ ->end ()
54
60
->arrayNode ('openai ' )
55
61
->children ()
56
62
->scalarNode ('api_key ' )->isRequired ()->end ()
Original file line number Diff line number Diff line change 28
28
use Symfony \AI \Platform \Bridge \Gemini \Contract \GeminiContract ;
29
29
use Symfony \AI \Platform \Bridge \Ollama \Contract \OllamaContract ;
30
30
use Symfony \AI \Platform \Bridge \OpenAi \Whisper \AudioNormalizer ;
31
+ use Symfony \AI \Platform \Bridge \VertexAi \Contract \GeminiContract as VertexAiGeminiContract ;
31
32
use Symfony \AI \Platform \Contract ;
32
33
use Symfony \AI \Platform \Contract \JsonSchema \DescriptionParser ;
33
34
use Symfony \AI \Platform \Contract \JsonSchema \Factory as SchemaFactory ;
45
46
->factory ([AnthropicContract::class, 'create ' ])
46
47
->set ('ai.platform.contract.google ' , Contract::class)
47
48
->factory ([GeminiContract::class, 'create ' ])
49
+ ->set ('ai.platform.contract.vertexai.gemini ' , Contract::class)
50
+ ->factory ([VertexAiGeminiContract::class, 'create ' ])
48
51
->set ('ai.platform.contract.ollama ' , Contract::class)
49
52
->factory ([OllamaContract::class, 'create ' ])
50
53
// structured output
Original file line number Diff line number Diff line change @@ -293,6 +293,10 @@ private function getFullConfig(): array
293
293
'gemini ' => [
294
294
'api_key ' => 'gemini_key_full ' ,
295
295
],
296
+ 'vertexai ' => [
297
+ 'location ' => 'test_location ' ,
298
+ 'project_id ' => 'test_project_id ' ,
299
+ ],
296
300
'openai ' => [
297
301
'api_key ' => 'openai_key_full ' ,
298
302
],
You can’t perform that action at this time.
0 commit comments