update wiki

This commit is contained in:
maojindao55
2025-06-20 18:37:34 +08:00
parent 197f2e6373
commit 9b7ceeb286
2 changed files with 10 additions and 5 deletions

View File

@@ -27,9 +27,9 @@
1. [Fork本项目](https://github.com/maojindao55/botgroup.chat/fork)到你的 GitHub 账号
2. 登录 [Cloudflare Dashboard](https://dash.cloudflare.com/)
- 进入 Workers & Pages 页面
- 点击 "Create a application > Pages" 按钮
- 选择 "Connect to Git"
- 进入Workers > Workers & Pages 页面
- 点击 "创建" 按钮
- 选择 "Pages">"Connect to Git"
3. 配置部署选项
- 选择你 fork 的仓库
@@ -141,6 +141,7 @@ APIKEY|对应角色|服务商|申请地址|
## 贡献指南
欢迎提交 Pull Request 或提出 Issue。
加官方微信:`botgroup` 拉你进微信群
当然也可以加共建QQ群交流922322461群号
## 跪谢赞助商ORZ

View File

@@ -267,9 +267,12 @@ const ChatUI = () => {
// 添加当前 AI 的消息
setMessages(prev => [...prev, aiMessage]);
let uri = "/api/chat";
if (selectedGroupAiCharacters[i].rag == true) {
uri = "/rag/query";
}
try {
const response = await request(`/api/chat`, {
const response = await request(uri, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
@@ -277,6 +280,7 @@ const ChatUI = () => {
body: JSON.stringify({
model: selectedGroupAiCharacters[i].model,
message: inputMessage,
query: inputMessage,
personality: selectedGroupAiCharacters[i].personality,
history: messageHistory,
index: i,