Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix, Allow selecting models with attributes for openRouter as well #421

Merged
merged 1 commit into from
Feb 20, 2025

Conversation

ahumenberger
Copy link
Contributor

No description provided.

@ahumenberger ahumenberger self-assigned this Feb 19, 2025
@zimmski zimmski changed the title fix, Allow selecting models with attributes fix, Allow selecting models with attributes for openRouter as well Feb 20, 2025
@zimmski zimmski merged commit 377f295 into main Feb 20, 2025
8 checks passed
@zimmski zimmski deleted the allow-model-parameters branch February 20, 2025 07:54
if len(attributes) > 0 {
modelWithAttributes := m.Clone()
modelWithAttributes.SetAttributes(attributes)
models[modelWithAttributes.ID()] = modelWithAttributes
Copy link
Contributor

Choose a reason for hiding this comment

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

This one is unnecessary. All checks on models[] have already been done so there is no point in adding it.

Also checks are done with provider/model but with the change to model.ID here we are setting it with parameter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants