Skip to content

Commit 388b4fa

Browse files
committed
Fix completion stopping token
1 parent 8187da5 commit 388b4fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backend/src/routes/page/complete.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ router.get(
3232
const response = await OpenAIClient!.createCompletion({
3333
model: 'text-davinci-003',
3434
prompt: context,
35-
max_tokens: 10,
35+
stop: ['\n'],
36+
max_tokens: 100,
3637
n: 1,
3738
});
3839

0 commit comments

Comments
 (0)