Commit 242b2126 by archer

imgs

parent 2843178e
...@@ -31,7 +31,7 @@ Fast GPT 允许你使用自己的 openai API KEY 来快速的调用 openai 接 ...@@ -31,7 +31,7 @@ Fast GPT 允许你使用自己的 openai API KEY 来快速的调用 openai 接
## 🏘️ 交流群 ## 🏘️ 交流群
添加 wx 进入: 添加 wx 进入:
![Demo](https://otnvvf-imgs.oss.laf.run/wx300.png?raw=true 'wx') ![Demo](https://otnvvf-imgs.oss.laf.run/wx300.png)
## 👀 其他 ## 👀 其他
......
...@@ -76,11 +76,11 @@ export default withNextCors(async function handler(req: NextApiRequest, res: Nex ...@@ -76,11 +76,11 @@ export default withNextCors(async function handler(req: NextApiRequest, res: Nex
if (code === 201) { if (code === 201) {
return res.send(searchPrompts[0]?.value); return res.send(searchPrompts[0]?.value);
} }
prompts.splice(prompts.length - 1, 0, ...searchPrompts); prompts.splice(prompts.length - 3, 0, ...searchPrompts);
} else { } else {
// 没有用知识库搜索,仅用系统提示词 // 没有用知识库搜索,仅用系统提示词
model.chat.systemPrompt && model.chat.systemPrompt &&
prompts.splice(prompts.length - 1, 0, { prompts.splice(prompts.length - 3, 0, {
obj: ChatRoleEnum.System, obj: ChatRoleEnum.System,
value: model.chat.systemPrompt value: model.chat.systemPrompt
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment