Skip to main content

NoneBot 集成 GitHub Copilot 和 OpenAI 的 AI 代码生成模型插件

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-githubmodels

✨ 一个调用 GitHub Models 的 AI 对话插件 ✨

License PyPI Python
NoneBot Registry Supported Adapters

安装

使用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
  • 说明: 生成文本随机性

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_githubmodels-1.0.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_githubmodels-1.0.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_githubmodels-1.0.0.tar.gz.

File metadata

  • Download URL: nonebot_plugin_githubmodels-1.0.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.15 {"installer":{"name":"uv","version":"0.9.15","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}

File hashes

Hashes for nonebot_plugin_githubmodels-1.0.0.tar.gz
Algorithm Hash digest
SHA256 00a7cc9fea37003b64e2837b4c48dfffac95811db20ec10e901630da6e361757
MD5 e9b93f305b9be3727254d6f14fe703bf
BLAKE2b-256 c8453c7832ad94f34395dc8fdeca703623d5dc8a30ecbddc999a415e54e391d7

See more details on using hashes here.

File details

Details for the file nonebot_plugin_githubmodels-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: nonebot_plugin_githubmodels-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.15 {"installer":{"name":"uv","version":"0.9.15","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}

File hashes

Hashes for nonebot_plugin_githubmodels-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3c4d1dc931017b947eabcde701fa7f09f34e63b2b124206b6023d46746b8264d
MD5 775b44096a0ecae7544a4d8e7d84efd2
BLAKE2b-256 7040eddebe6b082a14dbd9c7fac77fa1b03b44708c62cb70e62ec40d4961da4c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page