Skip to main content
NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-chatgpt-turbo

介绍

  • 本插件适配OpenAI接口兼容的大模型(OpenAI官方、DeepSeek、硅基流动)
  • 支持大模型思维链展示(需要模型支持)
  • 本插件具有上下文回复和多模态识别(识图)功能(需要模型支持)

安装

  • 手动安装

    git clone https://github.com/Alpaca4610/nonebot_plugin_chatgpt_turbo.git
    

    下载完成后在bot项目的pyproject.toml文件手动添加插件:

    plugin_dirs = ["xxxxxx","xxxxxx",......,"下载完成的插件路径/nonebot-plugin-gpt3.5-turbo"]
    
  • 使用 pip

    pip install nonebot-plugin-chatgpt-turbo
    

配置文件

在Bot根目录下的.env文件中追加如下内容: 必填内容:

oneapi_key = ""  # OpenAI官方或者是支持OneAPI的大模型中转服务商提供的KEY
oneapi_model = "gpt-4o" # 调用的大模型名称

可选内容(填True为开启,False为关闭):

oneapi_url = ""  # 中转API地址,使用deepseek请填写"https://api.deepseek.com",使用硅基流动请填写"https://api.siliconflow.cn/v1",使用OpenAI官方服务不需要填写
enable_private_chat = True   # 私聊开关
r1_reason = True  # DeepSeek-R1模型思维链显示开关
merge_msg = False # 是否合并转发回复

效果

使用方法

  • @机器人发送问题时机器人不具有上下文回复的能力
  • chat 使用该命令进行问答时,机器人具有上下文回复的能力
  • clear 清除当前用户的聊天记录

Release files for nonebot-plugin-chatgpt-turbo 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nonebot-plugin-chatgpt-turbo 1.2.1
File Size Uploaded
nonebot_plugin_chatgpt_turbo-1.2.1.tar.gz 4.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-chatgpt-turbo 1.2.1
File Interpreter ABI Platform
nonebot_plugin_chatgpt_turbo-1.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.5 kB

Release files / nonebot_plugin_chatgpt_turbo-1.2.1.tar.gz

Download URL nonebot_plugin_chatgpt_turbo-1.2.1.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
7d48bebdd32e2ff9934d10b33c2e5a082607c5bd4f660612df55db9a5b0b725c
BLAKE2b-256 checksum
How to use checksums
8bd03bf0c5a8c3acd9182667ab85d2a20ef53bb5e1ae27422cbe653e69f6d2bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.5 CPython/3.8.0 Windows/10

Release files / nonebot_plugin_chatgpt_turbo-1.2.1-py3-none-any.whl

Download URL nonebot_plugin_chatgpt_turbo-1.2.1-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d4fd43164b20e77feaad003e6ef3091e659710bcbe7925f122cd2751ba0a559f
BLAKE2b-256 checksum
How to use checksums
27273d8612bb8f1c4de93abb42e928fa8e8a7e654f8716d80f0ae6c9137b86a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.5 CPython/3.8.0 Windows/10

Release history Release notifications | RSS feed

This release

1.2.1 This release

2 release files

1.2.0

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.3.0

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page