mittwald / symfony-ai-platform
Allows to use mittwald's AI Platform in your Symfony AI project.
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:symfony-ai-platform
pkg:composer/mittwald/symfony-ai-platform
Requires
- php: >=8.2
- symfony/ai-platform: ^0.3
- symfony/http-client: ^7.3|^8.0
- symfony/mime: ^7.3|^8.0
This package is auto-updated.
Last update: 2026-02-11 16:31:40 UTC
README
Symfony AI platform bridge for mittwald's AI Hosting API.
Installation
composer require mittwald/symfony-ai-platform
Usage
use Mittwald\Symfony\AI\Platform\Bridge\PlatformFactory; use Symfony\AI\Platform\Message\Message; use Symfony\AI\Platform\Message\MessageBag; $platform = PlatformFactory::create('your-api-key'); // Chat completion $result = $platform->invoke('gpt-oss-120b', new MessageBag(Message::ofUser('Hello!'))); echo $result->asText(); // Streaming $result = $platform->invoke('gpt-oss-120b', new MessageBag(Message::ofUser('Hello!')), ['stream' => true]); foreach ($result->asStream() as $chunk) { echo $chunk; } // Embeddings $result = $platform->invoke('Qwen3-Embedding-8B', 'text to embed'); $vectors = $result->asVectors(); // Speech-to-text $result = $platform->invoke('Whisper-Large-V3-Turbo', '/path/to/audio.mp3'); echo $result->asText();
Supported Models
| Model | Capabilities |
|---|---|
gpt-oss-120b |
Text, Tool Calling, Streaming |
Ministral-3-14B-Instruct-2512 |
Text, Image, Tool Calling, Streaming |
Devstral-Small-2-24B-Instruct-2512 |
Text, Image, Tool Calling, Streaming |
Qwen3-Embedding-8B |
Embeddings |
Whisper-Large-V3-Turbo |
Speech-to-Text |
License
MIT