File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 45
45
->scalarNode ('api_key ' )->isRequired ()->end ()
46
46
->end ()
47
47
->end ()
48
+ ->arrayNode ('vertexai ' )
49
+ ->children ()
50
+ ->scalarNode ('location ' )->isRequired ()->end ()
51
+ ->scalarNode ('project_id ' )->isRequired ()->end ()
52
+ ->end ()
53
+ ->end ()
48
54
->arrayNode ('openai ' )
49
55
->children ()
50
56
->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
You can’t perform that action at this time.
0 commit comments