Skip to content

refactor: rename Model::version to Model::name #278

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

Merged
merged 1 commit into from
Apr 14, 2025

Conversation

chr-hertel
Copy link
Member

I'm currently working on an integration for Hugging Face and I think $version is misleading since this could also use quite different Models of one family.

Looking more into the direction of GenericModel what we saw already with #203
https://github.com/php-llm/llm-chain/blob/main/src/Bridge/OpenRouter/GenericModel.php

WDYT @OskarStark @DZunke

@chr-hertel chr-hertel added the BC BREAK Backwards compatibility break label Apr 13, 2025
@chr-hertel chr-hertel merged commit 349f4af into main Apr 14, 2025
7 checks passed
@chr-hertel chr-hertel deleted the refactor-model-version-to-name branch April 14, 2025 20:17
@DZunke
Copy link
Contributor

DZunke commented Apr 15, 2025

Just because i was pinged. I think the name wording is better in the domain model. The naming (i checked google, anthropic and open ai) for the models is "model" and so within the Model it is not the version but the name of the model.

For me this fits and should make more clear what is meant. So: 👍 - Thanks, also for the info.

@chr-hertel
Copy link
Member Author

Thanks @DZunke for the feedback :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BC BREAK Backwards compatibility break refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants