nonebot-plugin-githubmodels 0.2.6__tar.gz → 0.2.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,112 @@
1
+ Metadata-Version: 2.1
2
+ Name: nonebot-plugin-githubmodels
3
+ Version: 0.2.8
4
+ Summary: 一个调用 GitHub Models 的 AI 对话插件
5
+ Home-page: https://github.com/lyqgzbl/nonebot-plugin-githubmodels
6
+ License: MIT
7
+ Keywords: nonebot2,GitHub Models
8
+ Author: lyqgzbl
9
+ Author-email: admin@lyqgzbl.com
10
+ Requires-Python: >=3.8,<4.0
11
+ Classifier: License :: OSI Approved :: MIT License
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.8
14
+ Classifier: Programming Language :: Python :: 3.9
15
+ Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
19
+ Requires-Dist: nonebot-plugin-alconna (>=0.54.0,<0.55.0)
20
+ Requires-Dist: nonebot-plugin-htmlrender (>=0.5.0,<0.6.0)
21
+ Requires-Dist: nonebot2 (>=2.2.1,<3.0.0)
22
+ Requires-Dist: openai (>=1.44.1,<2.0.0)
23
+ Project-URL: Documentation, https://github.com/lyqgzbl/nonebot-plugin-githubmodels#readme
24
+ Project-URL: Repository, https://github.com/lyqgzbl/nonebot-plugin-githubmodels
25
+ Description-Content-Type: text/markdown
26
+
27
+ <!-- markdownlint-disable MD033 MD036 MD041 -->
28
+
29
+ <div align="center">
30
+
31
+ <a href="https://v2.nonebot.dev/store">
32
+ <img src="https://raw.githubusercontent.com/A-kirami/nonebot-plugin-template/resources/nbp_logo.png" width="180" height="180" alt="NoneBotPluginLogo">
33
+ </a>
34
+
35
+ <p>
36
+ <img src="https://raw.githubusercontent.com/lgc-NB2Dev/readme/main/template/plugin.svg" alt="NoneBotPluginText">
37
+ </p>
38
+
39
+ # nonebot-plugin-githubmodels
40
+
41
+ _✨ 一个调用 GitHub Models 的 AI 对话插件 ✨_
42
+
43
+ ![License](https://img.shields.io/pypi/l/nonebot-plugin-githubmodels)
44
+ ![PyPI](https://img.shields.io/pypi/v/nonebot-plugin-githubmodels.svg)
45
+ ![Python](https://img.shields.io/badge/python-3.8+-blue.svg)
46
+ [![NoneBot Registry](https://img.shields.io/endpoint?url=https%3A%2F%2Fnbbdg.lgc2333.top%2Fplugin%2Fnonebot-plugin-githubmodels)](https://registry.nonebot.dev/plugin/nonebot-plugin-githubmodels:nonebot_plugin_githubmodels)
47
+ [![Supported Adapters](https://img.shields.io/endpoint?url=https%3A%2F%2Fnbbdg.lgc2333.top%2Fplugin-adapters%2Fnonebot-plugin-alconna)](https://registry.nonebot.dev/plugin/nonebot-plugin-alconna:nonebot_plugin_alconna)
48
+
49
+ </div>
50
+
51
+ ## 安装
52
+ 使用nb-cli [推荐]
53
+ ```shell
54
+ nb plugin install nonebot-plugin-githubmodels
55
+ ```
56
+ 使用pip
57
+ ```shell
58
+ pip install nonebot-plugin-githubmodels
59
+ ```
60
+
61
+ ## 使用
62
+ 命令需要加 [NoneBot 命令前缀](https://nonebot.dev/docs/appendices/config#command-start-和-command-separator) (默认为`/`)
63
+ 使用命令`AI`/`ai`触发插件
64
+ 命令选项`-r` 重置上下文记忆
65
+ 命令选项`-i` 临时启用图片回复
66
+
67
+ ## 配置项
68
+
69
+ 配置方式:直接在 NoneBot 全局配置文件中添加以下配置项即可
70
+
71
+ ### github_token [必填]
72
+
73
+ - 类型:`str`
74
+ - 默认值:`None`
75
+ - 说明:用于访问 GitHub Models 的 GitHub token
76
+
77
+ ### max_context_length [选填]
78
+
79
+ - 类型:`int`
80
+ - 默认值:`20`
81
+ - 说明:记忆的上下文数量的最大值
82
+
83
+ ### ai_reply_image [选填]
84
+
85
+
86
+ - 类型: `bool`
87
+ - 默认: `False`
88
+ - 说明: 是否以图片的形式回复
89
+
90
+ ### ai_model_name [选填]
91
+
92
+ - 类型: `str`
93
+ - 默认: `gpt-4o-mini`
94
+ - 说明: 所使用的模型
95
+
96
+ ### ai_temperature [选填]
97
+
98
+ - 类型: `float`
99
+ - 默认: `1.0`
100
+ - 说明: 生成的文本的多样性和连贯性
101
+
102
+ ### ai_max_tokens [选填]
103
+
104
+ - 类型: `int`
105
+ - 默认: `1024`
106
+ - 说明: 模型生成文本的字数
107
+
108
+ ## ai_top_p [选填]
109
+
110
+ - 类型: `float`
111
+ - 默认: `1.0`
112
+ - 说明: 生成文本随机性
@@ -0,0 +1,86 @@
1
+ <!-- markdownlint-disable MD033 MD036 MD041 -->
2
+
3
+ <div align="center">
4
+
5
+ <a href="https://v2.nonebot.dev/store">
6
+ <img src="https://raw.githubusercontent.com/A-kirami/nonebot-plugin-template/resources/nbp_logo.png" width="180" height="180" alt="NoneBotPluginLogo">
7
+ </a>
8
+
9
+ <p>
10
+ <img src="https://raw.githubusercontent.com/lgc-NB2Dev/readme/main/template/plugin.svg" alt="NoneBotPluginText">
11
+ </p>
12
+
13
+ # nonebot-plugin-githubmodels
14
+
15
+ _✨ 一个调用 GitHub Models 的 AI 对话插件 ✨_
16
+
17
+ ![License](https://img.shields.io/pypi/l/nonebot-plugin-githubmodels)
18
+ ![PyPI](https://img.shields.io/pypi/v/nonebot-plugin-githubmodels.svg)
19
+ ![Python](https://img.shields.io/badge/python-3.8+-blue.svg)
20
+ [![NoneBot Registry](https://img.shields.io/endpoint?url=https%3A%2F%2Fnbbdg.lgc2333.top%2Fplugin%2Fnonebot-plugin-githubmodels)](https://registry.nonebot.dev/plugin/nonebot-plugin-githubmodels:nonebot_plugin_githubmodels)
21
+ [![Supported Adapters](https://img.shields.io/endpoint?url=https%3A%2F%2Fnbbdg.lgc2333.top%2Fplugin-adapters%2Fnonebot-plugin-alconna)](https://registry.nonebot.dev/plugin/nonebot-plugin-alconna:nonebot_plugin_alconna)
22
+
23
+ </div>
24
+
25
+ ## 安装
26
+ 使用nb-cli [推荐]
27
+ ```shell
28
+ nb plugin install nonebot-plugin-githubmodels
29
+ ```
30
+ 使用pip
31
+ ```shell
32
+ pip install nonebot-plugin-githubmodels
33
+ ```
34
+
35
+ ## 使用
36
+ 命令需要加 [NoneBot 命令前缀](https://nonebot.dev/docs/appendices/config#command-start-和-command-separator) (默认为`/`)
37
+ 使用命令`AI`/`ai`触发插件
38
+ 命令选项`-r` 重置上下文记忆
39
+ 命令选项`-i` 临时启用图片回复
40
+
41
+ ## 配置项
42
+
43
+ 配置方式:直接在 NoneBot 全局配置文件中添加以下配置项即可
44
+
45
+ ### github_token [必填]
46
+
47
+ - 类型:`str`
48
+ - 默认值:`None`
49
+ - 说明:用于访问 GitHub Models 的 GitHub token
50
+
51
+ ### max_context_length [选填]
52
+
53
+ - 类型:`int`
54
+ - 默认值:`20`
55
+ - 说明:记忆的上下文数量的最大值
56
+
57
+ ### ai_reply_image [选填]
58
+
59
+
60
+ - 类型: `bool`
61
+ - 默认: `False`
62
+ - 说明: 是否以图片的形式回复
63
+
64
+ ### ai_model_name [选填]
65
+
66
+ - 类型: `str`
67
+ - 默认: `gpt-4o-mini`
68
+ - 说明: 所使用的模型
69
+
70
+ ### ai_temperature [选填]
71
+
72
+ - 类型: `float`
73
+ - 默认: `1.0`
74
+ - 说明: 生成的文本的多样性和连贯性
75
+
76
+ ### ai_max_tokens [选填]
77
+
78
+ - 类型: `int`
79
+ - 默认: `1024`
80
+ - 说明: 模型生成文本的字数
81
+
82
+ ## ai_top_p [选填]
83
+
84
+ - 类型: `float`
85
+ - 默认: `1.0`
86
+ - 说明: 生成文本随机性
@@ -1,30 +1,43 @@
1
+ import datetime
2
+ from pathlib import Path
3
+
1
4
  import nonebot
2
5
  from nonebot import require, get_plugin_config
3
6
  from nonebot.rule import Rule
4
7
  from nonebot.log import logger
5
- from nonebot.plugin import PluginMetadata
6
-
8
+ from nonebot.plugin import PluginMetadata, inherit_supported_adapters
7
9
  require("nonebot_plugin_alconna")
8
10
  require("nonebot_plugin_htmlrender")
9
11
  from openai import BadRequestError
10
- from arclet.alconna import Args, Option, Alconna, MultiVar
12
+ from arclet.alconna import Args, Option, Alconna, MultiVar, CommandMeta
11
13
  from nonebot_plugin_alconna import UniMessage, on_alconna, Match
12
14
  from nonebot_plugin_htmlrender import md_to_pic
13
15
 
14
16
  from .config import Config
15
- from .GPT_handler import GPTHandler
17
+ from .openai_handler import OPENAI_Handler
16
18
  from .context_manager import ContextManager
17
19
 
18
20
 
21
+ __plugin_meta__ = PluginMetadata(
22
+ name="GitHub Models",
23
+ description="一个调用 GitHub Models 的 AI 对话插件",
24
+ usage="/AI Hello",
25
+ type="application",
26
+ homepage="https://github.com/lyqgzbl/nonebot-plugin-githubmodels",
27
+ config=Config,
28
+ supported_adapters=inherit_supported_adapters("nonebot_plugin_alconna"),
29
+ )
30
+
31
+
19
32
  plugin_config = get_plugin_config(Config)
20
33
  REPLY_IMAGE = plugin_config.ai_reply_image
21
34
 
22
35
 
23
36
  if not plugin_config.github_token:
24
37
  logger.opt(colors=True).warning("<yellow>缺失必要配置项 'github_token',已禁用该插件</yellow>")
25
- GPT_handler = None
38
+ openai_handler = None
26
39
  else:
27
- GPT_handler = GPTHandler(
40
+ openai_handler = OPENAI_Handler(
28
41
  api_key=plugin_config.github_token,
29
42
  endpoint="https://models.inference.ai.azure.com",
30
43
  model_name=plugin_config.ai_model_name,
@@ -48,8 +61,14 @@ ai = on_alconna(
48
61
  Alconna(
49
62
  "AI",
50
63
  Args["user_input?", MultiVar(str)],
51
- Option("-r|--reset"),
52
- Option("-i|--image"),
64
+ Option("-r|--reset", help_text="重置上下文记忆"),
65
+ Option("-i|--image", help_text="临时启用图片回复"),
66
+ meta=CommandMeta(
67
+ description="AI 对话插件",
68
+ usage=__plugin_meta__.usage,
69
+ example="/AI Hello; /AI -i Hello; /AI -r",
70
+ compact=True,
71
+ ),
53
72
  ),
54
73
  rule=is_enable(),
55
74
  use_cmd_start=True,
@@ -85,10 +104,15 @@ async def got_location(user_input: str):
85
104
  messages = [{"role": "system", "content": "回答尽量简练,请始终用中文回答"}]
86
105
  context_manager.add_message("user", user_input)
87
106
  messages += context_manager.get_context()
88
- reply = await GPT_handler.get_response(messages)
107
+ reply = await openai_handler.get_response(messages)
89
108
  context_manager.add_message("assistant", reply)
90
109
  if REPLY_IMAGE:
91
- pic = await md_to_pic(md=reply)
110
+ current_hour = datetime.datetime.now().hour
111
+ is_dark_mode = 18 <= current_hour or current_hour < 6
112
+ css_file = (
113
+ Path(__file__).parent / "css" / ("dark.css" if is_dark_mode else "light.css")
114
+ )
115
+ pic = await md_to_pic(md=reply, css_path=str(css_file))
92
116
  await UniMessage.image(raw=pic).send(reply_to=True)
93
117
  else:
94
118
  await UniMessage.text(reply).send(reply_to=True)
@@ -96,14 +120,4 @@ async def got_location(user_input: str):
96
120
  logger.opt(colors=True).error(f"<red>API 请求失败: {e}</red>")
97
121
  await ai.send("问题触发了内容过滤策略,请修改问题后重试")
98
122
  finally:
99
- REPLY_IMAGE = plugin_config.ai_reply_image
100
-
101
-
102
- __plugin_meta__ = PluginMetadata(
103
- name="githubmodels",
104
- description="API 调用 GitHub Models 的大语言模型",
105
- usage="AI",
106
- type="application",
107
- homepage="https://github.com/lyqgzbl/nonebot-plugin-githubmodels",
108
- supported_adapters=None,
109
- )
123
+ REPLY_IMAGE = plugin_config.ai_reply_image
@@ -0,0 +1,61 @@
1
+ body {
2
+ background-color: #1e1e2f;
3
+ color: #d4d4d4;
4
+ font-family: -apple-system, BlinkMacSystemFont, "Microsoft Yahei", "Noto Sans", sans-serif, monospace;
5
+ line-height: 1.8;
6
+ margin: 0;
7
+ padding: 1rem;
8
+ overflow-wrap: break-word;
9
+ text-rendering: optimizeLegibility;
10
+ -webkit-font-smoothing: antialiased;
11
+ font-size: 16px;
12
+ }
13
+
14
+ h1, h2, h3, h4, h5, h6 {
15
+ color: #ffffff;
16
+ border-bottom: 1px solid #444;
17
+ }
18
+
19
+ a {
20
+ color: #569cd6;
21
+ text-decoration: none;
22
+ }
23
+
24
+ a:hover {
25
+ text-decoration: underline;
26
+ }
27
+
28
+ code, pre {
29
+ background-color: #2d2d3a;
30
+ color: #d4d4d4;
31
+ border-radius: 5px;
32
+ padding: 0.2rem 0.4rem;
33
+ }
34
+
35
+ blockquote {
36
+ border-left: 4px solid #444;
37
+ padding-left: 1rem;
38
+ color: #999;
39
+ font-style: italic;
40
+ }
41
+
42
+ table {
43
+ width: 100%;
44
+ border-collapse: collapse;
45
+ margin: 1rem 0;
46
+ background-color: #2d2d3a;
47
+ }
48
+
49
+ table th, table td {
50
+ border: 1px solid #444;
51
+ padding: 0.5rem;
52
+ text-align: left;
53
+ color: #d4d4d4;
54
+ }
55
+
56
+ hr {
57
+ border: 0;
58
+ height: 1px;
59
+ background: #444;
60
+ margin: 2rem 0;
61
+ }
@@ -0,0 +1,61 @@
1
+ body {
2
+ background-color: #f9f9f9;
3
+ color: #333333;
4
+ font-family: -apple-system, BlinkMacSystemFont, "Microsoft Yahei", "Noto Sans", sans-serif, monospace;
5
+ line-height: 1.8;
6
+ margin: 0;
7
+ padding: 1rem;
8
+ overflow-wrap: break-word;
9
+ text-rendering: optimizeLegibility;
10
+ -webkit-font-smoothing: antialiased;
11
+ font-size: 16px;
12
+ }
13
+
14
+ h1, h2, h3, h4, h5, h6 {
15
+ color: #000000;
16
+ border-bottom: 1px solid #cccccc;
17
+ }
18
+
19
+ a {
20
+ color: #0066cc;
21
+ text-decoration: none;
22
+ }
23
+
24
+ a:hover {
25
+ text-decoration: underline;
26
+ }
27
+
28
+ code, pre {
29
+ background-color: #e5e5e5;
30
+ color: #333333;
31
+ border-radius: 5px;
32
+ padding: 0.2rem 0.4rem;
33
+ }
34
+
35
+ blockquote {
36
+ border-left: 4px solid #cccccc;
37
+ padding-left: 1rem;
38
+ color: #666666;
39
+ font-style: italic;
40
+ }
41
+
42
+ table {
43
+ width: 100%;
44
+ border-collapse: collapse;
45
+ margin: 1rem 0;
46
+ background-color: #ffffff;
47
+ }
48
+
49
+ table th, table td {
50
+ border: 1px solid #cccccc;
51
+ padding: 0.5rem;
52
+ text-align: left;
53
+ color: #333333;
54
+ }
55
+
56
+ hr {
57
+ border: 0;
58
+ height: 1px;
59
+ background: #cccccc;
60
+ margin: 2rem 0;
61
+ }
@@ -1,6 +1,6 @@
1
1
  from openai import AsyncOpenAI
2
2
 
3
- class GPTHandler:
3
+ class OPENAI_Handler:
4
4
  def __init__(
5
5
  self,
6
6
  api_key: str,
@@ -1,25 +1,22 @@
1
1
  [tool.poetry]
2
2
  name = "nonebot-plugin-githubmodels"
3
- version = "0.2.6"
4
- description = "API 调用 GitHub Models 的大语言模型"
3
+ version = "0.2.8"
4
+ description = "一个调用 GitHub Models 的 AI 对话插件"
5
5
  readme = "README.md"
6
6
  authors = ["lyqgzbl <admin@lyqgzbl.com>"]
7
7
  license = "MIT"
8
8
  homepage = "https://github.com/lyqgzbl/nonebot-plugin-githubmodels"
9
9
  repository = "https://github.com/lyqgzbl/nonebot-plugin-githubmodels"
10
+ documentation = "https://github.com/lyqgzbl/nonebot-plugin-githubmodels#readme"
11
+ keywords = ["nonebot2", "GitHub Models"]
10
12
 
11
13
  [tool.poetry.dependencies]
12
14
  python = "^3.8"
13
15
  nonebot2 = "^2.2.1"
14
16
  openai = "^1.44.1"
15
- nonebot-plugin-htmlrender = "^0.3.5"
17
+ nonebot-plugin-htmlrender = "^0.5.0"
16
18
  nonebot-plugin-alconna = "^0.54.0"
17
19
 
18
20
  [build-system]
19
21
  requires = ["poetry-core>=1.0.0"]
20
- build-backend = "poetry.core.masonry.api"
21
-
22
- [tool.nonebot.plugin]
23
- name = "githubmodels"
24
- description = "API 调用 GitHub Models 的大语言模型"
25
- type = "application"
22
+ build-backend = "poetry.core.masonry.api"
@@ -1,66 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: nonebot-plugin-githubmodels
3
- Version: 0.2.6
4
- Summary: API 调用 GitHub Models 的大语言模型
5
- Home-page: https://github.com/lyqgzbl/nonebot-plugin-githubmodels
6
- License: MIT
7
- Author: lyqgzbl
8
- Author-email: admin@lyqgzbl.com
9
- Requires-Python: >=3.8,<4.0
10
- Classifier: License :: OSI Approved :: MIT License
11
- Classifier: Programming Language :: Python :: 3
12
- Classifier: Programming Language :: Python :: 3.8
13
- Classifier: Programming Language :: Python :: 3.9
14
- Classifier: Programming Language :: Python :: 3.10
15
- Classifier: Programming Language :: Python :: 3.11
16
- Classifier: Programming Language :: Python :: 3.12
17
- Classifier: Programming Language :: Python :: 3.13
18
- Requires-Dist: nonebot-plugin-alconna (>=0.54.0,<0.55.0)
19
- Requires-Dist: nonebot-plugin-htmlrender (>=0.3.5,<0.4.0)
20
- Requires-Dist: nonebot2 (>=2.2.1,<3.0.0)
21
- Requires-Dist: openai (>=1.44.1,<2.0.0)
22
- Project-URL: Repository, https://github.com/lyqgzbl/nonebot-plugin-githubmodels
23
- Description-Content-Type: text/markdown
24
-
25
- <!-- markdownlint-disable MD033 MD036 MD041 -->
26
-
27
- <div align="center">
28
-
29
- <a href="https://v2.nonebot.dev/store">
30
- <img src="https://raw.githubusercontent.com/A-kirami/nonebot-plugin-template/resources/nbp_logo.png" width="180" height="180" alt="NoneBotPluginLogo">
31
- </a>
32
-
33
- <p>
34
- <img src="https://raw.githubusercontent.com/lgc-NB2Dev/readme/main/template/plugin.svg" alt="NoneBotPluginText">
35
- </p>
36
-
37
- # nonebot-plugin-githubmodels
38
-
39
- _✨ API调用GitHub models大语言模型 ✨_
40
-
41
- <a href ="https://raw.githubusercontent.com/lyqgzbl/nonebot-plugin-githubmodels/refs/heads/main/LICENSE"><img src="https://img.shields.io/pypi/l/nonebot-plugin-githubmodels"> </a>
42
- <a href="https://pypi.python.org/pypi/nonebot-plugin-githubmodels"> <img src="https://img.shields.io/pypi/v/nonebot-plugin-githubmodels.svg" alt="pypi"></a>
43
- <img src="https://img.shields.io/badge/python-3.8+-blue.svg" alt="python">
44
-
45
- </div>
46
-
47
- # 安装
48
- 使用nb-cli [推荐]
49
- ```shell
50
- nb plugin install nonebot-plugin-githubmodels
51
- ```
52
- 使用pip
53
- ```shell
54
- pip install nonebot-plugin-githubmodels
55
- ```
56
-
57
- # 使用
58
- 命令需要加 [NoneBot 命令前缀](https://nonebot.dev/docs/appendices/config#command-start-和-command-separator) (默认为`/`)
59
- 使用命令`AI`/`ai`触发插件
60
- 命令选项`-r` 重置上下文记忆
61
- 命令选项`-i` 临时启用图片回复
62
-
63
- # 配置
64
-
65
- 配置参见 [.env.example](https://github.com/lyqgzbl/nonebot-plugin-githubmodels/blob/main/.env.example)
66
-
@@ -1,41 +0,0 @@
1
- <!-- markdownlint-disable MD033 MD036 MD041 -->
2
-
3
- <div align="center">
4
-
5
- <a href="https://v2.nonebot.dev/store">
6
- <img src="https://raw.githubusercontent.com/A-kirami/nonebot-plugin-template/resources/nbp_logo.png" width="180" height="180" alt="NoneBotPluginLogo">
7
- </a>
8
-
9
- <p>
10
- <img src="https://raw.githubusercontent.com/lgc-NB2Dev/readme/main/template/plugin.svg" alt="NoneBotPluginText">
11
- </p>
12
-
13
- # nonebot-plugin-githubmodels
14
-
15
- _✨ API调用GitHub models大语言模型 ✨_
16
-
17
- <a href ="https://raw.githubusercontent.com/lyqgzbl/nonebot-plugin-githubmodels/refs/heads/main/LICENSE"><img src="https://img.shields.io/pypi/l/nonebot-plugin-githubmodels"> </a>
18
- <a href="https://pypi.python.org/pypi/nonebot-plugin-githubmodels"> <img src="https://img.shields.io/pypi/v/nonebot-plugin-githubmodels.svg" alt="pypi"></a>
19
- <img src="https://img.shields.io/badge/python-3.8+-blue.svg" alt="python">
20
-
21
- </div>
22
-
23
- # 安装
24
- 使用nb-cli [推荐]
25
- ```shell
26
- nb plugin install nonebot-plugin-githubmodels
27
- ```
28
- 使用pip
29
- ```shell
30
- pip install nonebot-plugin-githubmodels
31
- ```
32
-
33
- # 使用
34
- 命令需要加 [NoneBot 命令前缀](https://nonebot.dev/docs/appendices/config#command-start-和-command-separator) (默认为`/`)
35
- 使用命令`AI`/`ai`触发插件
36
- 命令选项`-r` 重置上下文记忆
37
- 命令选项`-i` 临时启用图片回复
38
-
39
- # 配置
40
-
41
- 配置参见 [.env.example](https://github.com/lyqgzbl/nonebot-plugin-githubmodels/blob/main/.env.example)