Skip to content

Commit

Permalink
relax parameters strictness
Browse files Browse the repository at this point in the history
  • Loading branch information
wgifford committed Nov 26, 2024
1 parent ebd4589 commit 1f00c9a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions services/boilerplate/inference_payloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,10 @@ class ForecastingMetadataInput(BaseMetadataInput):
)


class BaseParameters(BaseModel):
model_config = ConfigDict(extra="forbid", protected_namespaces=())

class BaseParameters(BaseModel): ...

class ForecastingParameters(BaseModel):
model_config = ConfigDict(extra="forbid", protected_namespaces=())

class ForecastingParameters(BaseParameters):
prediction_length: Optional[int] = Field(
description="The prediction length for the forecast."
" The service will return this many periods beyond the last"
Expand Down

0 comments on commit 1f00c9a

Please sign in to comment.