You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/server/README.md
+2
Original file line number
Diff line number
Diff line change
@@ -333,6 +333,8 @@ node index.js
333
333
334
334
`n_predict`: Set the maximum number of tokens to predict when generating text. **Note:** May exceed the set limit slightly if the last token is a partial multibyte character. When 0, no tokens will be generated but the prompt is evaluated into the cache. Default: `-1`, where `-1` is infinity.
335
335
336
+
`n_indent`: Specify the minimum line indentation for the generated text in number of spaces. Useful for code completion tasks. Default: `0`
337
+
336
338
`n_keep`: Specify the number of tokens from the prompt to retain when the context size is exceeded and tokens need to be discarded. The number excludes the BOS token.
337
339
By default, this value is set to `0`, meaning no tokens are kept. Use `-1` to retain all tokens from the prompt.
0 commit comments