refactor: create a new basemodel class to use with chat and text
What does this merge request do and why?
Although the diff looks big, the changes were conceptually small:
- create a new
ModelBase
class to unify duplicated definitions fromTextGenBaseModel
andChatModelBase
.ModelBase
is named as such to not conflict withpydantic.BaseModel
- rename
TextGenBaseModel
toTextGenModelBase
to follow the convention ofChatModelBase
and the newly addedModelBase
. - organize
base.py
by movingtext
specific classes intobase_text.py
base.py
base_text.py
base_chat.py
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
Merge request checklist
-
Tests added for new functionality. If not, please raise an issue to follow up. -
Documentation added/updated, if needed.
Edited by Bruno Cardoso