Skip to content

Conversation

OskarStark
Copy link
Contributor

@OskarStark OskarStark commented Sep 13, 2025

Q A
Bug fix? no
New feature? yes
Docs? no
Issues --
License MIT

Removes default model names from all Model class constructors to prevent breaking changes when default models are changed. Model names must now be explicitly provided when instantiating model classes.

@OskarStark OskarStark self-assigned this Sep 13, 2025
@OskarStark OskarStark added the Platform Issues & PRs about the AI Platform component label Sep 13, 2025
@OskarStark OskarStark requested a review from Nyholm as a code owner September 13, 2025 08:25
@OskarStark OskarStark added the BC Break Breaking the Backwards Compatibility Promise label Sep 13, 2025
@carsonbot carsonbot changed the title Remove default model names from constructor parameters [Platform] Remove default model names from constructor parameters Sep 13, 2025
@OskarStark OskarStark force-pushed the remove-default-models branch from b982315 to a5c7bc0 Compare September 13, 2025 10:07
@OskarStark OskarStark merged commit 4180fd8 into symfony:main Sep 13, 2025
@OskarStark OskarStark deleted the remove-default-models branch September 13, 2025 18:39
OskarStark added a commit to OskarStark/ai that referenced this pull request Sep 23, 2025
After PR symfony#577, model names can no longer be null as default model names
were removed from Model class constructors. This change:

- Makes model name required in configuration (options.php)
- Removes null checks when setting model name argument (AiBundle.php)
OskarStark added a commit that referenced this pull request Sep 23, 2025
This PR was squashed before being merged into the main branch.

Discussion
----------

[AI Bundle] Fix null model names

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| Docs?         | no
| Issues        | Follows #577
| License       | MIT

Commits
-------

b527ecb [AI Bundle] Fix null model names
OskarStark added a commit that referenced this pull request Sep 23, 2025
…arameters (OskarStark)

This PR was squashed before being merged into the main branch.

Discussion
----------

[Platform] Remove default model names from constructor parameters

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| Docs?         | no
| Issues        | Forgotten in #577
| License       | MIT

Commits
-------

70e86c2 [Platform] Remove default model names from constructor parameters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BC Break Breaking the Backwards Compatibility Promise Feature New feature Platform Issues & PRs about the AI Platform component Status: Needs Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants