Skip to content

Commit

Permalink
Fix completion stopping token
Browse files Browse the repository at this point in the history
  • Loading branch information
Eroxl committed Jul 25, 2023
1 parent 8187da5 commit 388b4fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/src/routes/page/complete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ router.get(
const response = await OpenAIClient!.createCompletion({
model: 'text-davinci-003',
prompt: context,
max_tokens: 10,
stop: ['\n'],
max_tokens: 100,
n: 1,
});

Expand Down

0 comments on commit 388b4fa

Please sign in to comment.