Skip to content
This repository was archived by the owner on Jul 16, 2025. It is now read-only.

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

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
BC BREAK Backwards compatibility break refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants