|
7 | 7 | - [x] OpenAPI格式
|
8 | 8 | - [x] 自定义模型
|
9 | 9 | - [x] ChatGPT反代
|
10 |
| -- [ ] 指令补全 |
| 10 | +- [x] 指令补全 |
11 | 11 | - [ ] 上下文对话
|
12 | 12 | - [ ] 自定义prompt
|
13 | 13 |
|
|
33 | 33 | api:
|
34 | 34 | # 你的 OpenAI API key,用于身份验证
|
35 | 35 | # 获取 API key 的方法:访问 //platform.openai.com/account/api-keys 并创建一个新的 API key
|
36 |
| - key: "your_openai_api_key" |
| 36 | + key: "sk-your_openai_api_key" |
37 | 37 | # OpenAI API 的基础 URL,用于构建请求
|
38 | 38 | base_url: "https://api.openai.com/v1"
|
39 | 39 | # 支持的模型列表
|
40 | 40 | models:
|
41 | 41 | # OpenAI ChatGPT
|
42 | 42 | - "gpt-3.5-turbo"
|
| 43 | + - "gpt-3.5-turbo-instruct" |
43 | 44 | - "gpt-4"
|
| 45 | + - "gpt-4-turbo" |
| 46 | + - "gpt-4-turbo-preview" |
| 47 | + - "gpt-4o" |
| 48 | + # Google Gemini |
| 49 | + # - "gemini-pro" |
| 50 | + # - "gemini-1.5-pro" |
| 51 | + # Anthropic Claude |
| 52 | + # - "claude-3-opus" |
| 53 | + # - "claude-3-5-sonnet" |
| 54 | + # 以及更多... |
44 | 55 | # 默认使用的模型
|
45 | 56 | default_model: "gpt-3.5-turbo"
|
46 | 57 | # 消息相关设置
|
47 | 58 | messages:
|
48 |
| - reload: "已重新加载配置文件!" |
49 |
| - help: "===== MineChatGPT 帮助 =====" |
50 |
| - help_ask: "/chatgpt <text> - 向ChatGPT提问" |
51 |
| - help_reload: "/chatgpt reload - 重新加载配置文件" |
52 |
| - help_model: "/chatgpt model <model_name> - 切换至其他模型" |
53 |
| - help_modellist: "/chatgpt modellist - 可用的模型列表" |
54 |
| - usage: "输入: /chatgpt model <model_name>" |
55 |
| - model_switch: "已切换至模型 %s" |
56 |
| - chatgpt_error: "无法联系ChatGPT。" |
57 |
| - chatgpt_response: "ChatGPT: %s" |
58 |
| - question: "你: %s" |
59 |
| - invalid_model: "模型无效。使用 /chatgpt modellist 查看可用模型。" |
60 |
| - available_models: "可用模型列表:" |
61 |
| - no_permission: "你没有权限使用这个指令。需要的权限:%s" |
| 59 | + reload: "&a已重新加载配置文件!" |
| 60 | + help: "&e===== MineChatGPT 帮助 =====" |
| 61 | + help_ask: "&e/chatgpt <text> - 向ChatGPT提问" |
| 62 | + help_reload: "&e/chatgpt reload - 重新加载配置文件" |
| 63 | + help_model: "&e/chatgpt model <model_name> - 切换至其他模型" |
| 64 | + help_modellist: "&e/chatgpt modellist - 可用的模型列表" |
| 65 | + usage: "&c输入: /chatgpt model <model_name>" |
| 66 | + model_switch: "&a已切换至模型 %s" |
| 67 | + chatgpt_error: "&c无法联系ChatGPT。" |
| 68 | + chatgpt_response: "&bChatGPT: %s" |
| 69 | + question: "&b你: %s" |
| 70 | + invalid_model: "&c模型无效。使用 /chatgpt modellist 查看可用模型。" |
| 71 | + available_models: "&e可用模型列表:" |
| 72 | + no_permission: "&c你没有权限使用这个指令。需要的权限:%s" |
62 | 73 | ```
|
63 | 74 | ## 兼容的版本
|
64 | 75 | ✔ = 完全支持
|
|
0 commit comments