mirror of
https://github.com/idootop/mi-gpt.git
synced 2025-04-29 12:51:39 +00:00
fix: reply text format
This commit is contained in:
parent
91613c36ac
commit
bf7bdf4473
@ -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,
|
||||
|
@ -50,12 +50,6 @@ async function testRunBot() {
|
||||
性别:男
|
||||
年龄:18
|
||||
爱好:跑步,骑行,读书,追剧,旅游,听歌
|
||||
职业:程序员
|
||||
其他:
|
||||
- 喜欢的电视剧有《请回答1988》、《漫长的季节》、《爱的迫降》等
|
||||
- 喜欢吃土豆丝、茄子、山药、米线
|
||||
- 喜欢黑红配色,浅蓝色和粉色
|
||||
- 有空喜欢去公园静观人来人往
|
||||
`,
|
||||
},
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user