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.2.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.2-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nonebot_plugin_githubmodels-1.0.2.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for nonebot_plugin_githubmodels-1.0.2.tar.gz
Algorithm Hash digest
SHA256 35b321b31acc19c48608e0d789fd837a2f52756a7c72b89025cf5323ab3d78f9
MD5 868630c1b38012edb35d23d78789ba0e
BLAKE2b-256 a16c37d785eb8f938a54454d10801895d3906e37e2f6d295c5dde28450fe0b7a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nonebot_plugin_githubmodels-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for nonebot_plugin_githubmodels-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 683496982ed605045993cddefd7f74e0f29587ff80ef869fce80366cb540ff92
MD5 dd0062da4030f6f28f5513d2cb9d5247
BLAKE2b-256 982e79de88e4674bdbcd8f9762eace4b8cb8ccd2227239d87171868220aa0bac

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