Refactor code to use "//" as a stop condition for devchatComplete

This commit is contained in:
bobo.yang 2024-06-06 18:35:30 +08:00
parent a1b10487a3
commit 89f8320253

View File

@ -206,7 +206,7 @@ export async function * devchatComplete(prompt: string) : AsyncGenerator<CodeCom
model: model,
prompt: prompt,
stream: true,
stop: ["<|endoftext|>", "<|EOT|>", "<file_sep>", "```", "/", "\n\n"],
stop: ["<|endoftext|>", "<|EOT|>", "<file_sep>", "```", "//", "\n\n"],
temperature: 0.2
};