Download the PHP package cors/symfony-ai-506-platform without Composer
On this page you can find all versions of the php package cors/symfony-ai-506-platform. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cors/symfony-ai-506-platform
More information about cors/symfony-ai-506-platform
Files in cors/symfony-ai-506-platform
Package symfony-ai-506-platform
Short Description 506.ai platform bridge for Symfony AI
License MIT
Homepage https://github.com/cors-gmbh/symfony-ai-506-platform
Informations about the package symfony-ai-506-platform
506.ai Platform for Symfony AI
Symfony AI platform bridge for the 506.ai public API (API docs).
It lets you use the LLMs, roles, assistants, files and data collections of your 506.ai
organization through Symfony AI's PlatformInterface — plain text, streaming and structured
output into PHP objects.
This is a community package maintained by CORS GmbH, it is not affiliated with Symfony or 506.ai.
Installation
An admin creates the API key on the 506.ai platform (admin settings → API); the organization id is shown on the same page.
Usage
Standalone
Symfony
Register the bundle:
The platform is registered as ai.platform.ai506 and can be autowired by name:
With symfony/ai-bundle
installed, the platform shows up in the profiler, works with
bin/console ai:platform:invoke ai506 gpt-4.1 "Hello" and can be used by agents:
Streaming
Structured output
Uses 506.ai's generateStructuredOutput endpoint. Requires Symfony AI's structured output
PlatformSubscriber on the event dispatcher (registered automatically by symfony/ai-bundle):
Options
Pass options per invocation or in the model name (gpt-4.1?mode=QA&temperature=0.5):
| Option | 506.ai field | Description |
|---|---|---|
temperature |
temperature |
0.0–1.0, default 0.2 (mandatory for 506.ai) |
mode |
selectedMode |
BASIC (default), QA (vector search) or SEARCH (web search) |
role_id |
roleId |
Role shared with the API user |
assistant_id |
selectedAssistantId |
Pre-configured assistant, overrides model, role and temperature |
selected_files |
selectedFiles |
uniqueTitles of uploaded media |
data_collections |
selectedDataCollections |
Data collection ids (QA mode only) |
internal_system_prompt |
?internalSystemPrompt |
Default true |
citation |
?citation |
Inline citation mapping in the references (QA mode) |
stream |
Stream the answer | |
response_format |
jsonStructure |
Structured output |
In QA mode the answer's references are available as result metadata:
Limitations
- No tool calling / agent mode — not offered by the 506.ai public API. Symfony AI agents work, but without tools.
- Text input only — upload media through the 506.ai API and reference it via
selected_files. - Structured output has no chat history: all messages are joined into the
contentfield. The JSON schema is converted to 506.ai's format, which supportstype,description,properties,items,enum,pattern,minimumandmaximum; nullable types become their non-null type. No streaming. - No token usage is reported by 506.ai.
- Media, data collection and moderation endpoints are not covered by this bridge.
License
MIT, see LICENSE.md.
All versions of symfony-ai-506-platform with dependencies
symfony/ai-platform Version ^0.14
symfony/http-client Version ^7.3|^8.0
symfony/mime Version ^7.3|^8.0