@@ -224,8 +224,8 @@ private function processPlatformConfig(string $type, array $platform, ContainerB
224224 ->setArguments ([
225225 $ platform ['api_key ' ],
226226 new Reference ($ platform ['http_client ' ], ContainerInterface::NULL_ON_INVALID_REFERENCE ),
227- new Reference ('ai.platform.contract.anthropic ' ),
228227 new Reference ('ai.platform.model_catalog.anthropic ' ),
228+ new Reference ('ai.platform.contract.anthropic ' ),
229229 ])
230230 ->addTag ('ai.platform ' );
231231
@@ -247,8 +247,8 @@ private function processPlatformConfig(string $type, array $platform, ContainerB
247247 $ config ['api_version ' ],
248248 $ config ['api_key ' ],
249249 new Reference ($ config ['http_client ' ], ContainerInterface::NULL_ON_INVALID_REFERENCE ),
250- new Reference ('ai.platform.contract.openai ' ),
251250 new Reference ('ai.platform.model_catalog.azure.openai ' ),
251+ new Reference ('ai.platform.contract.azure.openai ' ),
252252 ])
253253 ->addTag ('ai.platform ' );
254254
@@ -268,8 +268,8 @@ private function processPlatformConfig(string $type, array $platform, ContainerB
268268 $ platform ['api_key ' ],
269269 $ platform ['host ' ],
270270 new Reference ($ platform ['http_client ' ], ContainerInterface::NULL_ON_INVALID_REFERENCE ),
271- new Reference ('ai.platform.contract.default ' ),
272271 new Reference ('ai.platform.model_catalog.elevenlabs ' ),
272+ new Reference ('ai.platform.contract.default ' ),
273273 ])
274274 ->addTag ('ai.platform ' );
275275
@@ -287,8 +287,8 @@ private function processPlatformConfig(string $type, array $platform, ContainerB
287287 ->setArguments ([
288288 $ platform ['api_key ' ],
289289 new Reference ($ platform ['http_client ' ], ContainerInterface::NULL_ON_INVALID_REFERENCE ),
290- new Reference ('ai.platform.contract.google ' ),
291290 new Reference ('ai.platform.model_catalog.gemini ' ),
291+ new Reference ('ai.platform.contract.gemini ' ),
292292 ])
293293 ->addTag ('ai.platform ' );
294294
@@ -327,8 +327,8 @@ private function processPlatformConfig(string $type, array $platform, ContainerB
327327 $ platform ['location ' ],
328328 $ platform ['project_id ' ],
329329 $ httpClient ,
330- new Reference ('ai.platform.contract.vertexai ' , ContainerInterface::NULL_ON_INVALID_REFERENCE ),
331330 new Reference ('ai.platform.model_catalog.vertexai.gemini ' ),
331+ new Reference ('ai.platform.contract.vertexai.gemini ' ),
332332 ])
333333 ->addTag ('ai.platform ' );
334334
@@ -346,6 +346,7 @@ private function processPlatformConfig(string $type, array $platform, ContainerB
346346 ->setArguments ([
347347 $ platform ['api_key ' ],
348348 new Reference ($ platform ['http_client ' ], ContainerInterface::NULL_ON_INVALID_REFERENCE ),
349+ new Reference ('ai.platform.model_catalog.openai ' ),
349350 new Reference ('ai.platform.contract.openai ' ),
350351 $ platform ['region ' ] ?? null ,
351352 ])
@@ -365,8 +366,8 @@ private function processPlatformConfig(string $type, array $platform, ContainerB
365366 ->setArguments ([
366367 $ platform ['api_key ' ],
367368 new Reference ($ platform ['http_client ' ], ContainerInterface::NULL_ON_INVALID_REFERENCE ),
368- new Reference ('ai.platform.contract.default ' ),
369369 new Reference ('ai.platform.model_catalog.openrouter ' ),
370+ new Reference ('ai.platform.contract.default ' ),
370371 ])
371372 ->addTag ('ai.platform ' );
372373
@@ -384,8 +385,8 @@ private function processPlatformConfig(string $type, array $platform, ContainerB
384385 ->setArguments ([
385386 $ platform ['api_key ' ],
386387 new Reference ($ platform ['http_client ' ], ContainerInterface::NULL_ON_INVALID_REFERENCE ),
387- new Reference ('ai.platform.contract.default ' ),
388388 new Reference ('ai.platform.model_catalog.mistral ' ),
389+ new Reference ('ai.platform.contract.default ' ),
389390 ])
390391 ->addTag ('ai.platform ' );
391392
@@ -403,8 +404,8 @@ private function processPlatformConfig(string $type, array $platform, ContainerB
403404 ->setArguments ([
404405 $ platform ['host_url ' ],
405406 new Reference ($ platform ['http_client ' ], ContainerInterface::NULL_ON_INVALID_REFERENCE ),
406- new Reference ('ai.platform.contract.default ' ),
407407 new Reference ('ai.platform.model_catalog.lmstudio ' ),
408+ new Reference ('ai.platform.contract.default ' ),
408409 ])
409410 ->addTag ('ai.platform ' );
410411
@@ -422,8 +423,8 @@ private function processPlatformConfig(string $type, array $platform, ContainerB
422423 ->setArguments ([
423424 $ platform ['host_url ' ],
424425 new Reference ($ platform ['http_client ' ], ContainerInterface::NULL_ON_INVALID_REFERENCE ),
425- new Reference ('ai.platform.contract.ollama ' ),
426426 new Reference ('ai.platform.model_catalog.ollama ' ),
427+ new Reference ('ai.platform.contract.ollama ' ),
427428 ])
428429 ->addTag ('ai.platform ' );
429430
@@ -442,6 +443,7 @@ private function processPlatformConfig(string $type, array $platform, ContainerB
442443 $ platform ['api_key ' ],
443444 new Reference ($ platform ['http_client ' ], ContainerInterface::NULL_ON_INVALID_REFERENCE ),
444445 new Reference ('ai.platform.model_catalog.cerebras ' ),
446+ new Reference ('ai.platform.contract.default ' ),
445447 ])
446448 ->addTag ('ai.platform ' );
447449
@@ -460,6 +462,7 @@ private function processPlatformConfig(string $type, array $platform, ContainerB
460462 $ platform ['api_key ' ],
461463 new Reference ($ platform ['http_client ' ], ContainerInterface::NULL_ON_INVALID_REFERENCE ),
462464 new Reference ('ai.platform.model_catalog.voyage ' ),
465+ new Reference ('ai.platform.contract.default ' ),
463466 ])
464467 ->addTag ('ai.platform ' );
465468
@@ -477,6 +480,7 @@ private function processPlatformConfig(string $type, array $platform, ContainerB
477480 ->setArguments ([
478481 $ platform ['api_key ' ],
479482 new Reference ($ platform ['http_client ' ], ContainerInterface::NULL_ON_INVALID_REFERENCE ),
483+ new Reference ('ai.platform.model_catalog.perplexity ' ),
480484 new Reference ('ai.platform.contract.perplexity ' ),
481485 ])
482486 ->addTag ('ai.platform ' );
@@ -495,8 +499,8 @@ private function processPlatformConfig(string $type, array $platform, ContainerB
495499 ->setArguments ([
496500 $ platform ['host_url ' ],
497501 new Reference ($ platform ['http_client ' ], ContainerInterface::NULL_ON_INVALID_REFERENCE ),
498- new Reference ('ai.platform.contract.default ' ),
499502 new Reference ('ai.platform.model_catalog.dockermodelrunner ' ),
503+ new Reference ('ai.platform.contract.default ' ),
500504 ])
501505 ->addTag ('ai.platform ' );
502506
@@ -514,8 +518,8 @@ private function processPlatformConfig(string $type, array $platform, ContainerB
514518 ->setArguments ([
515519 $ platform ['api_key ' ],
516520 new Reference ('http_client ' , ContainerInterface::NULL_ON_INVALID_REFERENCE ),
517- new Reference ('ai.platform.contract.default ' ),
518521 new Reference ('ai.platform.model_catalog.scaleway ' ),
522+ new Reference ('ai.platform.contract.default ' ),
519523 ])
520524 ->addTag ('ai.platform ' );
521525
0 commit comments