|
27 | 27 | use Symfony\AI\AiBundle\Security\Attribute\IsGrantedTool;
|
28 | 28 | use Symfony\AI\Platform\Bridge\Anthropic\PlatformFactory as AnthropicPlatformFactory;
|
29 | 29 | use Symfony\AI\Platform\Bridge\Azure\OpenAi\PlatformFactory as AzureOpenAiPlatformFactory;
|
| 30 | +use Symfony\AI\Platform\Bridge\Cerebras\PlatformFactory as CerebrasPlatformFactory; |
| 31 | +use Symfony\AI\Platform\Bridge\ElevenLabs\PlatformFactory as ElevenLabsPlatformFactory; |
30 | 32 | use Symfony\AI\Platform\Bridge\Gemini\PlatformFactory as GeminiPlatformFactory;
|
31 | 33 | use Symfony\AI\Platform\Bridge\LmStudio\PlatformFactory as LmStudioPlatformFactory;
|
32 | 34 | use Symfony\AI\Platform\Bridge\Mistral\PlatformFactory as MistralPlatformFactory;
|
33 | 35 | use Symfony\AI\Platform\Bridge\Ollama\PlatformFactory as OllamaPlatformFactory;
|
34 | 36 | use Symfony\AI\Platform\Bridge\OpenAi\PlatformFactory as OpenAiPlatformFactory;
|
35 | 37 | use Symfony\AI\Platform\Bridge\OpenRouter\PlatformFactory as OpenRouterPlatformFactory;
|
36 |
| -use Symfony\AI\Platform\Bridge\Cerebras\PlatformFactory as CerebrasPlatformFactory; |
37 | 38 | use Symfony\AI\Platform\Model;
|
38 | 39 | use Symfony\AI\Platform\ModelClientInterface;
|
39 | 40 | use Symfony\AI\Platform\Platform;
|
@@ -208,6 +209,26 @@ private function processPlatformConfig(string $type, array $platform, ContainerB
|
208 | 209 | return;
|
209 | 210 | }
|
210 | 211 |
|
| 212 | + if ('eleven_labs' === $type) { |
| 213 | + $platformId = 'ai.platform.eleven_labs'; |
| 214 | + $definition = (new Definition(Platform::class)) |
| 215 | + ->setFactory(ElevenLabsPlatformFactory::class.'::create') |
| 216 | + ->setLazy(true) |
| 217 | + ->addTag('proxy', ['interface' => PlatformInterface::class]) |
| 218 | + ->setArguments([ |
| 219 | + $platform['host'], |
| 220 | + $platform['api_key'], |
| 221 | + $platform['output_path'], |
| 222 | + new Reference('http_client', ContainerInterface::NULL_ON_INVALID_REFERENCE), |
| 223 | + new Reference('ai.platform.contract.default'), |
| 224 | + ]) |
| 225 | + ->addTag('ai.platform'); |
| 226 | + |
| 227 | + $container->setDefinition($platformId, $definition); |
| 228 | + |
| 229 | + return; |
| 230 | + } |
| 231 | + |
211 | 232 | if ('gemini' === $type) {
|
212 | 233 | $platformId = 'ai.platform.gemini';
|
213 | 234 | $definition = (new Definition(Platform::class))
|
|
0 commit comments