mirror of
				https://github.com/ddaodan/minechatgpt.git
				synced 2025-10-31 12:14:12 +08:00 
			
		
		
		
	2.0
- 更换为jodd-http库,减少插件大小 - 支持指令补全 - 现在可以在配置文件中修改所有消息的颜色了 - 默认配置文件中增加了一些模型
This commit is contained in:
		| @@ -4,7 +4,7 @@ plugins { | ||||
| } | ||||
|  | ||||
| group = 'com' | ||||
| version = '1.0' | ||||
| version = '2.0' | ||||
|  | ||||
| repositories { | ||||
|     mavenCentral() | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| # 更新日志 | ||||
| ## 2.0 | ||||
| - 更换为jodd-http库,减少插件大小 | ||||
| - 支持指令补全 | ||||
| - 现在可以在配置文件中修改所有消息的颜色了 | ||||
| - 默认配置文件中增加了一些模型 | ||||
| ## 1.0 | ||||
| - 插件发布 | ||||
							
								
								
									
										43
									
								
								readme.md
									
									
									
									
									
								
							
							
						
						
									
										43
									
								
								readme.md
									
									
									
									
									
								
							| @@ -7,7 +7,7 @@ | ||||
| - [x] OpenAPI格式 | ||||
| - [x] 自定义模型 | ||||
| - [x] ChatGPT反代 | ||||
| - [ ] 指令补全 | ||||
| - [x] 指令补全 | ||||
| - [ ] 上下文对话 | ||||
| - [ ] 自定义prompt | ||||
|  | ||||
| @@ -33,32 +33,43 @@ | ||||
| api: | ||||
|   # 你的 OpenAI API key,用于身份验证 | ||||
|   # 获取 API key 的方法:访问 //platform.openai.com/account/api-keys 并创建一个新的 API key | ||||
|   key: "your_openai_api_key" | ||||
|   key: "sk-your_openai_api_key" | ||||
|   # OpenAI API 的基础 URL,用于构建请求 | ||||
|   base_url: "https://api.openai.com/v1" | ||||
| # 支持的模型列表 | ||||
| models: | ||||
|   # OpenAI ChatGPT | ||||
|   - "gpt-3.5-turbo" | ||||
|   - "gpt-3.5-turbo-instruct" | ||||
|   - "gpt-4" | ||||
|   - "gpt-4-turbo" | ||||
|   - "gpt-4-turbo-preview" | ||||
|   - "gpt-4o" | ||||
|   # Google Gemini | ||||
|   # - "gemini-pro" | ||||
|   # - "gemini-1.5-pro" | ||||
|   # Anthropic Claude | ||||
|   # - "claude-3-opus" | ||||
|   # - "claude-3-5-sonnet" | ||||
|   # 以及更多... | ||||
| # 默认使用的模型 | ||||
| default_model: "gpt-3.5-turbo" | ||||
| # 消息相关设置 | ||||
| messages: | ||||
|   reload: "已重新加载配置文件!" | ||||
|   help: "===== MineChatGPT 帮助 =====" | ||||
|   help_ask: "/chatgpt <text> - 向ChatGPT提问" | ||||
|   help_reload: "/chatgpt reload - 重新加载配置文件" | ||||
|   help_model: "/chatgpt model <model_name> - 切换至其他模型" | ||||
|   help_modellist: "/chatgpt modellist - 可用的模型列表" | ||||
|   usage: "输入: /chatgpt model <model_name>" | ||||
|   model_switch: "已切换至模型 %s" | ||||
|   chatgpt_error: "无法联系ChatGPT。" | ||||
|   chatgpt_response: "ChatGPT: %s" | ||||
|   question: "你: %s" | ||||
|   invalid_model: "模型无效。使用 /chatgpt modellist 查看可用模型。" | ||||
|   available_models: "可用模型列表:" | ||||
|   no_permission: "你没有权限使用这个指令。需要的权限:%s" | ||||
|   reload: "&a已重新加载配置文件!" | ||||
|   help: "&e===== MineChatGPT 帮助 =====" | ||||
|   help_ask: "&e/chatgpt <text> - 向ChatGPT提问" | ||||
|   help_reload: "&e/chatgpt reload - 重新加载配置文件" | ||||
|   help_model: "&e/chatgpt model <model_name> - 切换至其他模型" | ||||
|   help_modellist: "&e/chatgpt modellist - 可用的模型列表" | ||||
|   usage: "&c输入: /chatgpt model <model_name>" | ||||
|   model_switch: "&a已切换至模型 %s" | ||||
|   chatgpt_error: "&c无法联系ChatGPT。" | ||||
|   chatgpt_response: "&bChatGPT: %s" | ||||
|   question: "&b你: %s" | ||||
|   invalid_model: "&c模型无效。使用 /chatgpt modellist 查看可用模型。" | ||||
|   available_models: "&e可用模型列表:" | ||||
|   no_permission: "&c你没有权限使用这个指令。需要的权限:%s" | ||||
| ``` | ||||
| ## 兼容的版本 | ||||
| ✔ = 完全支持   | ||||
|   | ||||
		Reference in New Issue
	
	Block a user