安装
使用nb-cli [推荐]
nb plugin install nonebot-plugin-githubmodels
使用pip
pip install nonebot-plugin-githubmodels
使用
命令需要加 NoneBot 命令前缀 (默认为/)
使用命令AI/ai触发插件
命令选项-r 重置上下文记忆
命令选项-i 临时启用图片回复
配置项
配置方式:直接在 NoneBot 全局配置文件中添加以下配置项即可
github_token [必填]
- 类型:
str - 默认值:
None - 说明:用于访问 GitHub Models 的 GitHub token
max_context_length [选填]
- 类型:
int - 默认值:
20 - 说明:记忆的上下文数量的最大值
ai_reply_image [选填]
- 类型:
bool - 默认:
False - 说明: 是否以图片的形式回复
ai_model_name [选填]
- 类型:
str - 默认:
openai/gpt-4.1-mini - 说明: 所使用的模型
ai_temperature [选填]
- 类型:
float - 默认:
1.0 - 说明: 生成的文本的多样性和连贯性
ai_top_p [选填]
- 类型:
float - 默认:
1.0 - 说明: 生成文本随机性
Metadata
Release files for nonebot-plugin-githubmodels 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nonebot_plugin_githubmodels-1.0.2.tar.gz | 5.1 kB | Without provenance | Details for nonebot_plugin_githubmodels-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_githubmodels-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_githubmodels-1.0.2-py3-none-any.whl |
Total release size: 12.8 kB
Release files / nonebot_plugin_githubmodels-1.0.2.tar.gz
| Download URL | nonebot_plugin_githubmodels-1.0.2.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
35b321b31acc19c48608e0d789fd837a2f52756a7c72b89025cf5323ab3d78f9
|
|
BLAKE2b-256 checksum How to use checksums |
a16c37d785eb8f938a54454d10801895d3906e37e2f6d295c5dde28450fe0b7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / nonebot_plugin_githubmodels-1.0.2-py3-none-any.whl
| Download URL | nonebot_plugin_githubmodels-1.0.2-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
683496982ed605045993cddefd7f74e0f29587ff80ef869fce80366cb540ff92
|
|
BLAKE2b-256 checksum How to use checksums |
982e79de88e4674bdbcd8f9762eace4b8cb8ccd2227239d87171868220aa0bac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for nonebot-plugin-githubmodels 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.