Merge pull request #14 from skilfulwriter/main

新增指令语法和一些常见问题
This commit is contained in:
Xiaoyu Su
2024-08-05 13:59:17 +08:00
committed by GitHub
10 changed files with 152 additions and 4 deletions
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -1,5 +1,5 @@
# [QChatGPT](https://github.com/RockChinQ/QChatGPT) 官方文档
测试
> 此分支是 QChatGPT 3.x 的文档
> [QChatGPT 代码仓库](https://github.com/RockChinQ/QChatGPT)
Binary file not shown.

After

Width:  |  Height:  |  Size: 196 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 268 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

+10 -1
View File
@@ -60,4 +60,13 @@ tag:
## 命令权限控制
您可以编辑`data/config/command.json`来设置命令节点的权限,当命令被发起时,若用户的权限级别(管理员为`2`,普通用户为`1`)大于等于命令节点的权限级别,命令即可被成功执行。具体配置方式请查看配置文件详解页。
您可以编辑`data/config/command.json`来设置命令节点的权限,当命令被发起时,若用户的权限级别(管理员为`2`,普通用户为`1`)大于等于命令节点的权限级别,命令即可被成功执行。具体配置方式请查看配置文件详解页。
## 切换模型命令
```
[bot] model: 显示和切换模型列表
使用方法:
!model
!model show <模型名>
!model set <模型名>
```
+6
View File
@@ -20,6 +20,12 @@ index: false
完成以上三个步骤后,你接下来应该仔细阅读左栏中的[配置详解](../config/README.md)和[元数据配置](../metadata/README.md),实现更多样化的配置需求
## 视频教程
[GPT/Claude/Gemini+AI语音+QQ机器人,部署最简单、使用更稳定的全新QChatGPT+语音插件,原神、星铁、鸣潮等2000+音色](https://www.bilibili.com/video/BV1iLvyePE8x/?share_source=copy_web&vd_source=596e7910a78045e2636e7b25e3618120)
## 整合包下载
[点击下载](https://pan.quark.cn/s/7d7ae63296d9)
ps--这个整合包也经包含python环境了,如果你是用QQ小号搭建机器人直接使用整合包跟着视频走就行了.
## 本项目交流 QQ 群
### 社区群
+135 -2
View File
@@ -9,6 +9,139 @@ author: Lazy
date: 2024-06-10
---
## Q:如何接入 OneAPI、LinkAI 等第三方 OpenAI 格式接口?
## Q1:如何接入 OneAPI、LinkAI 等第三方 OpenAI 格式接口?
文章:[📖 QChatGPT 实践:接入 OneAPI、LinkAI、中转站 等第三方 OpenAI 格式接口以使用 Gemini、Qwen 等模型](https://rockchin.top/?p=295)
文章:[📖 QChatGPT 实践:接入 OneAPI、LinkAI、中转站 等第三方 OpenAI 格式接口以使用 Gemini、Qwen 等模型](https://rockchin.top/?p=295)
## Q:2.怎么切换模型?
在这个provider.json 配置项页脚如图所示,修改你想要的模型,比如你想用月之暗面的,那他支持的模型只有moonshot-v1-8k, moonshot-v1-32k, moonshot-v1-128k,你只能改为这三个
![image](/assets/image/2.png)
支持的模型有:
```[bot] 模型列表:
名称: default
请求器: openai-chat-completions
名称: gpt-3.5-turbo-0125
请求器: openai-chat-completions
名称: gpt-3.5-turbo
请求器: openai-chat-completions
名称: gpt-3.5-turbo-1106
请求器: openai-chat-completions
名称: gpt-4-turbo
请求器: openai-chat-completions
名称: gpt-4-turbo-2024-04-09
请求器: openai-chat-completions
名称: gpt-4-turbo-preview
请求器: openai-chat-completions
名称: gpt-4-0125-preview
请求器: openai-chat-completions
名称: gpt-4-1106-preview
请求器: openai-chat-completions
名称: gpt-4
请求器: openai-chat-completions
名称: gpt-4o
请求器: openai-chat-completions
名称: gpt-4-0613
请求器: openai-chat-completions
名称: gpt-4-32k
请求器: openai-chat-completions
名称: gpt-4-32k-0613
请求器: openai-chat-completions
名称: gpt-4o-mini
请求器: openai-chat-completions
名称: OneAPI/gemini-1.5-pro-latest
请求器: openai-chat-completions
名称: OneAPI/gemini-1.5-flash-latest
请求器: openai-chat-completions
名称: OneAPI/claude-3-opus-20240229
请求器: openai-chat-completions
名称: OneAPI/claude-3-sonnet-20240229
请求器: openai-chat-completions
名称: OneAPI/claude-3-haiku-20240307
请求器: openai-chat-completions
名称: OneAPI/claude-3-5-sonnet-20240620
请求器: openai-chat-completions
名称: OneAPI/moonshot-v1-8k
请求器: openai-chat-completions
名称: OneAPI/moonshot-v1-32k
请求器: openai-chat-completions
名称: OneAPI/moonshot-v1-128k
请求器: openai-chat-completions
名称: OneAPI/deepseek-chat
请求器: openai-chat-completions
名称: OneAPI/deepseek-coder
请求器: openai-chat-completions
名称: claude-3-opus-20240229
请求器: anthropic-messages
名称: claude-3-sonnet-20240229
请求器: anthropic-messages
名称: claude-3-haiku-20240307
请求器: anthropic-messages
名称: claude-3-5-sonnet-20240620
请求器: anthropic-messages
名称: moonshot-v1-8k
请求器: moonshot-chat-completions
名称: moonshot-v1-32k
请求器: moonshot-chat-completions
名称: moonshot-v1-128k
请求器: moonshot-chat-completions
名称: deepseek-chat
请求器: deepseek-chat-completions
名称: deepseek-coder
请求器: deepseek-chat-completions
名称: OneAPI/SparkDesk
请求器: openai-chat-completions
名称: OneAPI/gemini-pro
请求器: openai-chat-completions
```
### 指令切换
启动机器人后用指令修改如图
![image](/assets/image/3.png)
## Q3.官方机器人IP白名单怎么填?
打开[IP138](https://ip38.com/) 这个网址,填写这个IP如图
![image](/assets/image/4.png)
## 无效令牌如图所示:
![image](/assets/image/5.png)
你的模型api未填或者不正确亦或者没有额度,请确认无误