Describe the bug
When trying to get list of models, it raises the following pydantic exception:
return [ModelObject(**model) for model in response.data]
E pydantic_core._pydantic_core.ValidationError: 1 validation error for ModelObject
E type
E Input should be 'chat', 'language', 'code', 'image', 'embedding' or 'moderation' [type=enum, input_value='rerank', input_type=str]
Describe the bug When trying to get list of models, it raises the following pydantic exception:
I believe this is happening because in the recent release some changes are not included, especially this one - https://github.com/togethercomputer/together-python/blob/main/src/together/types/models.py#L17. So please make a new release for the recent code changes.
To Reproduce Run the following piece of code:
Expected behavior This code should run without exceptions