Skip to content

Conversation

OskarStark
Copy link
Contributor

Q A
Bug fix? no
New feature? yes
Docs? no
Issues Follows #653
License MIT

Remove hardcoded max_tokens defaults from Claude and Nova model classes to prevent potential BC breaks when these values might change in future versions. Users should explicitly specify max_tokens if needed.

@OskarStark OskarStark self-assigned this Sep 23, 2025
@OskarStark OskarStark added the BC Break Breaking the Backwards Compatibility Promise label Sep 23, 2025
@carsonbot carsonbot added Feature New feature Platform Issues & PRs about the AI Platform component Status: Needs Review labels Sep 23, 2025
Remove hardcoded max_tokens defaults from Claude and Nova model classes
to prevent potential BC breaks when these values might change in future
versions. Users should explicitly specify max_tokens if needed.
@OskarStark OskarStark merged commit 58ec2b3 into symfony:main Sep 23, 2025
14 checks passed
*/
public function __construct(
string $name,
array $options = ['max_tokens' => 1000],
Copy link
Member

Choose a reason for hiding this comment

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

setting max_tokens is actually needed - if you mind the value here, we could set it in the ModelClient instead, but we need to have a default to have the API similar to the other models.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can you explain why this is needed?

Copy link
Member

Choose a reason for hiding this comment

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

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.

3 participants