Skip to content

Introduce the GET models endpoint#435

Merged
vchan merged 1 commit intomainfrom
vchan/models-endpoint
Feb 23, 2023
Merged

Introduce the GET models endpoint#435
vchan merged 1 commit intomainfrom
vchan/models-endpoint

Conversation

@vchan
Copy link
Contributor

@vchan vchan commented Feb 23, 2023

No description provided.

@vchan vchan requested a review from a team February 23, 2023 21:56
owner: t.Optional[str]


class Models(PydanticModel):
Copy link
Contributor

Choose a reason for hiding this comment

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

it needs to be wrapped like this?

limit: t.Optional[int] = None


class Model(PydanticModel):
Copy link
Contributor

Choose a reason for hiding this comment

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

we can't use the core model class?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can. I'll update the web models to extend Pydantic's BaseModel class in another PR.

@vchan vchan merged commit 2dfd227 into main Feb 23, 2023
@vchan vchan deleted the vchan/models-endpoint branch February 23, 2023 22:36
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.

2 participants