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
|
|
@ -84,7 +84,7 @@ class ChatCompletionRequest(CommonCompletionRequest):
|
|||
|
||||
# Chat completions requests do not have a BOS token preference. Backend
|
||||
# respects the tokenization config for the individual model.
|
||||
add_bos_token: Optional[bool] = Field(default=None)
|
||||
add_bos_token: Optional[bool] = None
|
||||
|
||||
@field_validator("add_bos_token", mode="after")
|
||||
def force_bos_token(cls, v):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue