mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-03-15 00:07:28 +00:00
Model: Fix logit bias handling
If the token doesn't exist, gracefully warn instead of erroring out. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
@@ -111,7 +111,7 @@ class BaseSamplerRequest(BaseModel):
|
||||
|
||||
logit_bias: Optional[Dict[int, float]] = Field(
|
||||
default_factory=lambda: get_default_sampler_value("logit_bias"),
|
||||
examples=[[{"1": 10}]],
|
||||
examples=[{"1": 10, "2": 50}],
|
||||
)
|
||||
|
||||
negative_prompt: Optional[str] = Field(
|
||||
|
||||
Reference in New Issue
Block a user