Skip to content

Commit

Permalink
Merge pull request #214 from ibm-granite/service_updates
Browse files Browse the repository at this point in the history
relax parameters strictness
  • Loading branch information
ssiegel95 authored Nov 30, 2024
2 parents ebd4589 + 27f6a3c commit fa81367
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions services/boilerplate/inference_payloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,10 @@ class ForecastingMetadataInput(BaseMetadataInput):


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

model_config = ConfigDict(extra="allow", protected_namespaces=())

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 fa81367

Please sign in to comment.