Git Product home page Git Product logo

nonebot_plugin_chatgpt_turbo's People

Contributors

alpaca4610 avatar kexue-z avatar qnlanyang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nonebot_plugin_chatgpt_turbo's Issues

插件无法在telegram中运行

如题,同一个机器人,安装了cqhttp和telegram,QQ中可以正常回复chatgpt但是telegram无响应,仅有控制台输出,已经通过echo来测试机器人正常工作
-b94c635b3442511
1a90b9c5885a051c
-7101cb0f68fa76ff

clear无回应

COMMAND_START=[ "",""] ,使用clear或/clear或//clear均无回应

群聊共享同一个Session问题

请问如果我想要在群聊中让大家共享同一个Session该如何更改下面的代码呢?

# 根据消息类型创建会话id
def create_session_id(event):
    if isinstance(event, PrivateMessageEvent):
        session_id = f"Private_{event.user_id}"
    elif public:
        session_id = event.get_session_id().replace(f"{event.user_id}", "Public")
    else:
        session_id = event.get_session_id()
    return session_id

或者说还有什么方法可以实现吗?

SSLError

image
这是我代理的问题吗,看连接也确实走了代理
image

代码优化建议

首先非常感谢你做出的插件,我最近一直有在使用它

我查看了你的代码,想提几点不成熟的小建议
我注意到,为了实现私聊功能,你加入了if plugin_config.enable_private_chat:来启用针对私聊的处理,但是绝大部分的代码都是重复的,并且在nonebot初始化插件导入时会因为相同的触发命令而报几个warning。

以下是我的几个修改意见:

第一种方法,你可以将handler中的event:替换为MessageEvent,随后使用if isinstance(event, GroupMessageEvent):if isinstance(event, PrivateMessageEvent):来判断当前消息是私聊还是群聊;

第二种方法,你可以为相同的功能只保留一个matcher,但是你可以写多个@matcher.handle匹配不同的类型。
希望这些对你有帮助,非常感谢你对nonebot社区的贡献。

代理功能貌似无法正确发挥作用?

网络环境是没有问题的,设置全局代理的情况下可以正常使用并且返回消息。
http代理也是没问题的,浏览器和其他软件能正常代理。
但是在.env文件配置代理时貌似无法生效,显示网络请求报错。
image

插件似乎没有正常工作?

使用nb plugin命令安装插件后执行nb run,插件成功加载的信息输出了,但是发消息没有反应,apikey已经配置了。
图片

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.