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:
parent
aa34b2e5fd
commit
7def32e4de
2 changed files with 8 additions and 2 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue