We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09f3c23 commit 42ef6a6Copy full SHA for 42ef6a6
web/pages/api/generative/texts.ts
@@ -54,7 +54,7 @@ output:
54
55
const { choices } = data;
56
57
- const texts = choices.map((c) => c.text);
+ const texts = choices.map((c) => c.text.trim());
58
59
switch (req.method) {
60
case "GET": {
0 commit comments