mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 20:34:54 +00:00
Update clients/python/text_generation/types.py
Co-authored-by: Daniël de Kok <me@github.danieldk.eu>
This commit is contained in:
parent
f1a6fdb900
commit
4b8d150ceb
@ -452,6 +452,9 @@ class StreamResponse(BaseModel):
|
|||||||
|
|
||||||
# Inference API currently deployed model
|
# Inference API currently deployed model
|
||||||
class DeployedModel(BaseModel):
|
class DeployedModel(BaseModel):
|
||||||
|
# Disable warning for use of `model_` prefix in `model_id`. Be mindful about adding members
|
||||||
|
# with model_ prefixes, since this disables guardrails for colliding fields:
|
||||||
|
# https://github.com/pydantic/pydantic/issues/9177
|
||||||
model_config = ConfigDict(protected_namespaces=())
|
model_config = ConfigDict(protected_namespaces=())
|
||||||
model_id: str
|
model_id: str
|
||||||
sha: str
|
sha: str
|
||||||
|
Loading…
Reference in New Issue
Block a user