mirror of
https://github.com/ddaodan/minechatgpt.git
synced 2025-02-18 15:54:13 +08:00
2.3:[BUG]提问乱码/答非所问 #3
This commit is contained in:
parent
0944aa1a85
commit
aa8aadac49
@ -4,7 +4,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group = 'com'
|
group = 'com'
|
||||||
version = '2.2'
|
version = '2.3'
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
# 更新日志
|
# 更新日志
|
||||||
|
## 2.3
|
||||||
|
- 修复 #3:[BUG]提问乱码/答非所问
|
||||||
## 2.2
|
## 2.2
|
||||||
- 修复插件无法加载
|
- 修复插件无法加载
|
||||||
- 修复 #2:模型切换实际并不生效
|
- 修复 #2:模型切换实际并不生效
|
||||||
|
@ -57,6 +57,7 @@ models:
|
|||||||
- "gpt-4-turbo"
|
- "gpt-4-turbo"
|
||||||
- "gpt-4-turbo-preview"
|
- "gpt-4-turbo-preview"
|
||||||
- "gpt-4o"
|
- "gpt-4o"
|
||||||
|
- "gpt-4o-mini"
|
||||||
# Google Gemini
|
# Google Gemini
|
||||||
# - "gemini-pro"
|
# - "gemini-pro"
|
||||||
# - "gemini-1.5-pro"
|
# - "gemini-1.5-pro"
|
||||||
@ -66,6 +67,10 @@ models:
|
|||||||
# 以及更多...
|
# 以及更多...
|
||||||
# 默认使用的模型
|
# 默认使用的模型
|
||||||
default_model: "gpt-3.5-turbo"
|
default_model: "gpt-3.5-turbo"
|
||||||
|
conversation:
|
||||||
|
# 连续对话开关
|
||||||
|
context_enabled: false
|
||||||
|
max_history_size: 10
|
||||||
# 消息相关设置
|
# 消息相关设置
|
||||||
messages:
|
messages:
|
||||||
reload: "&a已重新加载配置文件!"
|
reload: "&a已重新加载配置文件!"
|
||||||
@ -83,7 +88,7 @@ messages:
|
|||||||
available_models: "&e可用模型列表:"
|
available_models: "&e可用模型列表:"
|
||||||
no_permission: "&c你没有权限使用这个指令。需要的权限:%s"
|
no_permission: "&c你没有权限使用这个指令。需要的权限:%s"
|
||||||
# 不要动!!!!!
|
# 不要动!!!!!
|
||||||
version: 2.1
|
version: 2.3
|
||||||
```
|
```
|
||||||
|
|
||||||
## 指令与权限
|
## 指令与权限
|
||||||
|
@ -148,9 +148,9 @@ public class CommandHandler implements CommandExecutor {
|
|||||||
logger.info("Built request: " + json.toString());
|
logger.info("Built request: " + json.toString());
|
||||||
|
|
||||||
HttpRequest request = HttpRequest.post(configManager.getBaseUrl() + "/chat/completions")
|
HttpRequest request = HttpRequest.post(configManager.getBaseUrl() + "/chat/completions")
|
||||||
.header("Content-Type", "application/json")
|
.header("Content-Type", "application/json; charset=UTF-8")
|
||||||
.header("Authorization", "Bearer " + configManager.getApiKey())
|
.header("Authorization", "Bearer " + configManager.getApiKey())
|
||||||
.body(json.toString());
|
.bodyText(json.toString());
|
||||||
|
|
||||||
if (configManager.isDebugMode()) {
|
if (configManager.isDebugMode()) {
|
||||||
logger.info("Sending request to ChatGPT: " + request.toString());
|
logger.info("Sending request to ChatGPT: " + request.toString());
|
||||||
|
@ -14,6 +14,7 @@ models:
|
|||||||
- "gpt-4-turbo"
|
- "gpt-4-turbo"
|
||||||
- "gpt-4-turbo-preview"
|
- "gpt-4-turbo-preview"
|
||||||
- "gpt-4o"
|
- "gpt-4o"
|
||||||
|
- "gpt-4o-mini"
|
||||||
# Google Gemini
|
# Google Gemini
|
||||||
# - "gemini-pro"
|
# - "gemini-pro"
|
||||||
# - "gemini-1.5-pro"
|
# - "gemini-1.5-pro"
|
||||||
@ -24,8 +25,9 @@ models:
|
|||||||
# The default model to use
|
# The default model to use
|
||||||
default_model: "gpt-3.5-turbo"
|
default_model: "gpt-3.5-turbo"
|
||||||
conversation:
|
conversation:
|
||||||
max_history_size: 10
|
# Continuous conversation switch
|
||||||
context_enabled: false
|
context_enabled: false
|
||||||
|
max_history_size: 10
|
||||||
# Message settings
|
# Message settings
|
||||||
messages:
|
messages:
|
||||||
reload: "&aConfiguration reloaded successfully!"
|
reload: "&aConfiguration reloaded successfully!"
|
||||||
@ -51,4 +53,4 @@ messages:
|
|||||||
# If you don't know what this is, don't change it
|
# If you don't know what this is, don't change it
|
||||||
debug: false
|
debug: false
|
||||||
# DO NOT EDIT!!!!!
|
# DO NOT EDIT!!!!!
|
||||||
version: 2.2
|
version: 2.3
|
@ -14,6 +14,7 @@ models:
|
|||||||
- "gpt-4-turbo"
|
- "gpt-4-turbo"
|
||||||
- "gpt-4-turbo-preview"
|
- "gpt-4-turbo-preview"
|
||||||
- "gpt-4o"
|
- "gpt-4o"
|
||||||
|
- "gpt-4o-mini"
|
||||||
# Google Gemini
|
# Google Gemini
|
||||||
# - "gemini-pro"
|
# - "gemini-pro"
|
||||||
# - "gemini-1.5-pro"
|
# - "gemini-1.5-pro"
|
||||||
@ -24,8 +25,9 @@ models:
|
|||||||
# 默认使用的模型
|
# 默认使用的模型
|
||||||
default_model: "gpt-3.5-turbo"
|
default_model: "gpt-3.5-turbo"
|
||||||
conversation:
|
conversation:
|
||||||
max_history_size: 10
|
# 连续对话开关
|
||||||
context_enabled: false
|
context_enabled: false
|
||||||
|
max_history_size: 10
|
||||||
# 消息相关设置
|
# 消息相关设置
|
||||||
messages:
|
messages:
|
||||||
reload: "&a已重新加载配置文件!"
|
reload: "&a已重新加载配置文件!"
|
||||||
@ -51,4 +53,4 @@ messages:
|
|||||||
# 如果你不知道这是什么,请不要动
|
# 如果你不知道这是什么,请不要动
|
||||||
debug: false
|
debug: false
|
||||||
# 不要动!!!!!
|
# 不要动!!!!!
|
||||||
version: 2.2
|
version: 2.3
|
Loading…
Reference in New Issue
Block a user