You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feature #714 [AI Bundle] Add parsing of model names with colon notation in config (sonnymilton)
This PR was squashed before being merged into the main branch.
Discussion
----------
[AI Bundle] Add parsing of model names with colon notation in config
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | yes <!-- please update src/**/CHANGELOG.md files -->
| Docs? | no <!-- required for new features -->
| Issues | - <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License | MIT
In #712, support for Ollama models with colon notation was added.
However, in the bundle configuration, `parse_url()` incorrectly treated the part before the colon as a URI scheme and discarded it.
As a result, model names were normalized to an empty or incomplete string, causing configuration errors.
```php
$parsed = parse_url('qwen3:0.6b'); // ['path' => '0.6b', 'scheme' => 'qwen' ]
$model = $parsed['path']; // "0.6b" ❌
```
This change ensures that model names written in colon notation are preserved correctly when parsing bundle configuration, allowing proper usage of Ollama models in Symfony projects.
Commits
-------
56714f3 [AI Bundle] Add parsing of model names with colon notation in config
0 commit comments