Skip to content

Conversation

sonnymilton
Copy link
Contributor

Q A
Bug fix? no
New feature? yes
Docs? no
Issues -
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.

$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.

@sonnymilton sonnymilton changed the title [AI-Bundle] Add parsing of model names with colon notation in config [AI Bundle] Add parsing of model names with colon notation in config Oct 1, 2025
@carsonbot carsonbot changed the title [AI Bundle] Add parsing of model names with colon notation in config Add parsing of model names with colon notation in config Oct 1, 2025
'model' => $model,
],
],
],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add this logic also for the vectorizer.name.model config

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@OskarStark OskarStark added the AI Bundle Issues & PRs about the AI integration bundle label Oct 2, 2025
@carsonbot carsonbot changed the title Add parsing of model names with colon notation in config [AI Bundle] Add parsing of model names with colon notation in config Oct 2, 2025
@OskarStark OskarStark force-pushed the ai-bundle-config-model-name-parse branch from cd6aa19 to 56714f3 Compare October 2, 2025 06:53
@OskarStark
Copy link
Contributor

Thank you @sonnymilton.

@OskarStark OskarStark merged commit b602bb9 into symfony:main Oct 2, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AI Bundle Issues & PRs about the AI integration bundle Feature New feature Status: Reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants