mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-03-15 00:07:28 +00:00
Sampling: Make add_bos_token override concise
Also set the default to None so text completions follows the same pattern. Signed-off-by: kingbri <8082010+kingbri1@users.noreply.github.com>
This commit is contained in:
@@ -205,7 +205,7 @@ class BaseSamplerRequest(BaseModel):
|
||||
)
|
||||
|
||||
add_bos_token: Optional[bool] = Field(
|
||||
default_factory=lambda: get_default_sampler_value("add_bos_token", True)
|
||||
default_factory=lambda: get_default_sampler_value("add_bos_token")
|
||||
)
|
||||
|
||||
ban_eos_token: Optional[bool] = Field(
|
||||
|
||||
Reference in New Issue
Block a user