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:
parent
656af41b5d
commit
6379081dd8
3 changed files with 3 additions and 3 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue