Skip to content

Commit 42ef6a6

Browse files
add trim
1 parent 09f3c23 commit 42ef6a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/pages/api/generative/texts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ output:
5454

5555
const { choices } = data;
5656

57-
const texts = choices.map((c) => c.text);
57+
const texts = choices.map((c) => c.text.trim());
5858

5959
switch (req.method) {
6060
case "GET": {

0 commit comments

Comments
 (0)