Skip to content

Commit f72446b

Browse files
Re-add end of text
1 parent d91dbb5 commit f72446b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

openapi.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2476,8 +2476,8 @@ components:
24762476
description: &completions_prompt_description |
24772477
The prompt(s) to generate completions for, encoded as a string, array of strings, array of tokens, or array of token arrays.
24782478

2479-
Note that is the document separator that the model sees during training, so if a prompt is not specified the model will generate as if from the beginning of a new document.
2480-
default: ""
2479+
Note that <|endoftext|> is the document separator that the model sees during training, so if a prompt is not specified the model will generate as if from the beginning of a new document.
2480+
default: "<|endoftext|>"
24812481
nullable: true
24822482
oneOf:
24832483
- type: string
@@ -2541,7 +2541,7 @@ components:
25412541

25422542
Accepts a json object that maps tokens (specified by their token ID in the GPT tokenizer) to an associated bias value from -100 to 100. You can use this [tokenizer tool](/tokenizer?view=bpe) (which works for both GPT-2 and GPT-3) to convert text to token IDs. Mathematically, the bias is added to the logits generated by the model prior to sampling. The exact effect will vary per model, but values between -1 and 1 should decrease or increase likelihood of selection; values like -100 or 100 should result in a ban or exclusive selection of the relevant token.
25432543

2544-
As an example, you can pass `{"50256": -100}` to prevent the token from being generated.
2544+
As an example, you can pass `{"50256": -100}` to prevent the <|endoftext|> token from being generated.
25452545
logprobs: &completions_logprobs_configuration
25462546
type: integer
25472547
minimum: 0
@@ -2590,7 +2590,7 @@ components:
25902590
nullable: true
25912591
oneOf:
25922592
- type: string
2593-
default:
2593+
default: <|endoftext|>
25942594
example: "\n"
25952595
nullable: true
25962596
- type: array

0 commit comments

Comments
 (0)