fix: reply text format

This commit is contained in:
WJG 2024-02-28 23:13:49 +08:00
parent 91613c36ac
commit bf7bdf4473
No known key found for this signature in database
GPG Key ID: 258474EF8590014A
2 changed files with 8 additions and 10 deletions

View File

@ -55,9 +55,13 @@ const systemTemplate = `
-
-
##
{{masterName}}
{{botName}}
## Response format
- Response the reply message in Chinese
-
Good example: "我是{{botName}}"
Bad example: "2024年02月28日星期三 23:01 {{botName}}: 我是{{botName}}"
##
{{botName}}{{masterName}}
@ -151,7 +155,7 @@ export class MyBot {
}
) {
const requestId = randomUUID();
const stream = new StreamResponse({ firstSubmitTimeout: 5 * 1000 });
const stream = new StreamResponse({ firstSubmitTimeout: 3 * 1000 });
openai
.chatStream({
...options,

View File

@ -50,12 +50,6 @@ async function testRunBot() {
18
- 1988
- 线
-
-
`,
},
});