imrov: remove multiline stop tokens
This commit is contained in:
parent
f98117d7d2
commit
620ecbe0ca
1 changed files with 2 additions and 2 deletions
|
|
@ -10,7 +10,7 @@ const STARCODER2_T_ARTIFACTS = ["t.", "\nt", "<file_sep>"];
|
|||
const PYTHON_ENCODING = "#- coding: utf-8";
|
||||
const CODE_BLOCK_END = "```";
|
||||
|
||||
const multilineStops: string[] = [DOUBLE_NEWLINE, WINDOWS_DOUBLE_NEWLINE];
|
||||
// const multilineStops: string[] = [DOUBLE_NEWLINE, WINDOWS_DOUBLE_NEWLINE];
|
||||
const commonStops = [SRC_DIRECTORY, PYTHON_ENCODING, CODE_BLOCK_END];
|
||||
|
||||
export function getStopTokens(
|
||||
|
|
@ -20,7 +20,7 @@ export function getStopTokens(
|
|||
): string[] {
|
||||
const stopTokens = [
|
||||
...(completionOptions?.stop || []),
|
||||
...multilineStops,
|
||||
// ...multilineStops,
|
||||
...commonStops,
|
||||
...(model.toLowerCase().includes("starcoder2")
|
||||
? STARCODER2_T_ARTIFACTS
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue