mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-04-28 18:21:42 +00:00
Sampling: Fix smoothing factor default fallback
default_factory, not default_factor Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
@@ -57,7 +57,7 @@ class SamplerParams(BaseModel):
|
|||||||
)
|
)
|
||||||
|
|
||||||
smoothing_factor: Optional[float] = Field(
|
smoothing_factor: Optional[float] = Field(
|
||||||
default_factor=lambda: get_default_sampler_value("smoothing_factor", 0.0),
|
default_factory=lambda: get_default_sampler_value("smoothing_factor", 0.0),
|
||||||
)
|
)
|
||||||
|
|
||||||
top_k: Optional[int] = Field(
|
top_k: Optional[int] = Field(
|
||||||
|
|||||||
Reference in New Issue
Block a user