Giter Site home page Giter Site logo

aichat-chatgpt's People

Contributors

bluedeer233 avatar cosmos01 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

aichat-chatgpt's Issues

name 'api' is not defined

image
ZN_)Z_K6C2A1E{~EC5I)@%L

虽然常见问题有写重启就行,但是我无论是重启bot还是重启服务器都没用,orz

'ServiceFunc' object is not iterable

hoshino/tool.py", line 27, in not_conflict
service_funcs.extend(t.find_handler(event))
TypeError: 'ServiceFunc' object is not iterable

这个是闲聊插件与hoshino版本不匹配吗

人格无法修改

图片
大佬您好,我设置了一个人格之后我想对这个人格进行修改,但是很显然它并没有成功修改人格。。。我也进行过重置人格的操作,但是也没有用,能请问一下是不是我操作有问题吗?

进程管理优化

多名使用者同时使用时会出现错误,建议正在进行对话时对另外使用者添加阻塞或者不给予回答

语句长度问题

我希望每个回复尽可能简短简洁,避免三段论格式化,但是max_tokens设置小了,截断位置语句不完整,是否有其他办法呢

发生错误: asyncio.run() cannot be called from a running event loop

[2022-12-11 11:56:30,985 人工智障] INFO: Message 1495289549 triggered init_neko.
/root/HoshinoBot/hoshino/modules/aichat-chatGPT/aichat.py:63: RuntimeWarning: coroutine 'AsyncChatbot.get_chat_response' was never awaited
return f"发生错误: {str(e)}"
RuntimeWarning: Enable tracemalloc to get the object allocation traceback

后台显示如上,QQ回复如标题。

读取 init_msg 文件错误,gbk 无法解码

读取 init_msg 文件错误,gbk 无法解码

猫娘初始化 命令出现错误, 试着复制了别的咒语,也一样会错误。
好像是识别不了中文?

[2022-12-14 16:11:45,256 人工智障] INFO: Message 335966059 triggered init_neko by PrefixTrigger.
[2022-12-14 16:11:45,268 人工智障] ERROR: <class 'UnicodeDecodeError'> occured when init_neko handling message 335966059.
[2022-12-14 16:11:45,278 人工智障] ERROR: 'gbk' codec can't decode byte 0x80 in position 14: illegal multibyte sequence
Traceback (most recent call last):
  File "D:\XCW\hoshino_xcw\XCW\Hoshino\hoshino\msghandler.py", line 28, in handle_message
    await service_func.func(bot, event)
  File "D:\XCW\hoshino_xcw\XCW\Hoshino\hoshino\service.py", line 216, in wrapper
    return await func(bot, event)
  File "D:\XCW\hoshino_xcw\XCW\Hoshino\hoshino\modules\aichat-chatGPT\aichat.py", line 59, in init_neko
    neko = init_msg.read()
UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 14: illegal multibyte sequence

插件显示import failed

麻烦佬帮我看一下报错,十分感谢!!

JY6$6F`ULXP93W}3IR_(_(E

@83@WQFII~`YJ8{D}0L9U%W

跟朋友研究了半天,尝试了重新安装也没整出个所以然来,麻烦佬了Orz

识别不到 New Chat 了

网页改了
猫娘初始化 和 初始化人工智障 命令失效了

[2022-12-25 13:12:54,185 人工智障] INFO: Message 1545825345 triggered init_neko by PrefixTrigger.
Message: no such element: Unable to locate element: {"method":"link text","selector":"New Chat"}
  (Session info: chrome=108.0.5359.125)
Stacktrace:
Backtrace:
        (No symbol) [0x010FF243]
        (No symbol) [0x01087FD1]
        (No symbol) [0x00F7D04D]
        (No symbol) [0x00FAC0B0]
        (No symbol) [0x00FAC22B]
        (No symbol) [0x00FDE612]
        (No symbol) [0x00FC85D4]
        (No symbol) [0x00FDC9EB]
        (No symbol) [0x00FC8386]
        (No symbol) [0x00FA163C]
        (No symbol) [0x00FA269D]
        GetHandleVerifier [0x01399A22+2655074]
        GetHandleVerifier [0x0138CA24+2601828]
        GetHandleVerifier [0x011A8C0A+619850]
        GetHandleVerifier [0x011A7830+614768]
        (No symbol) [0x010905FC]
        (No symbol) [0x01095968]
        (No symbol) [0x01095A55]
        (No symbol) [0x010A051B]
        BaseThreadInitThunk [0x751AFA29+25]
        RtlGetAppContainerNamedObjectPath [0x77347A9E+286]
        RtlGetAppContainerNamedObjectPath [0x77347A6E+238]

import报错

[2023-03-28 11:37:10,686 nonebot] ERROR: Failed to import "hoshino.modules.aichat-chatGPT.client", error: module 'openai' has no attribute 'ChatCompletion'
[2023-03-28 11:37:10,686 nonebot] ERROR: module 'openai' has no attribute 'ChatCompletion'
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/nonebot/plugin.py", line 253, in load_plugin
module = importlib.import_module(module_path)
File "/usr/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 848, in exec_module
File "", line 219, in _call_with_frames_removed
File "/root/HoshinoBot/hoshino/modules/aichat-chatGPT/client.py", line 6, in
class Client:
File "/root/HoshinoBot/hoshino/modules/aichat-chatGPT/client.py", line 7, in Client
chat = openai.ChatCompletion()
AttributeError: module 'openai' has no attribute 'ChatCompletion'

根据查询,说是较新版本的openai没有这个,应将 ChatCompletion改为 Completion

插件显示import failed

大佬您好,我安装了插件并pip了第三方库之后,重新启动bot显示import failed,最初的提示原因是name json not defined
image
于是我就在ai_chat.py里加了import json,然后就报错如下
image
能请问一下您的看法吗?实在不知道为什么不能用了。。。

name 'api' is not defined

机器人后台面板报错:name 'api' is not defined,开启机器人加载openai页面弹出后很短时间后就关闭。

name 'api' is not defined

image
点击机器人用cmd特性 停止好像也不行,帮助上给的Proxy代理插件下载后还需要自行寻找proxy服务代理商去进行proxy代理配置吗?或者我本地用clash进行本地代理应该也没问题罢()

Wrong response code

[2022-12-12 12:37:41,529 nonebot] ERROR: Failed to import "hoshino.modules.aichat-chatGPT.aichat", error: Wrong response code
[2022-12-12 12:37:41,530 nonebot] ERROR: Wrong response code
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/nonebot/plugin.py", line 253, in load_plugin
    module = importlib.import_module(module_path)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/root/xcwbot/HoshinoBot/hoshino/modules/aichat-chatGPT/aichat.py", line 34, in <module>
    chatbot = Chatbot(auth_config)
              ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/revChatGPT/revChatGPT.py", line 96, in __init__
    self.refresh_session()
  File "/usr/local/lib/python3.11/site-packages/revChatGPT/revChatGPT.py", line 308, in refresh_session
    raise Exception("Wrong response code")
Exception: Wrong response code

测试过的revChatGPT版本:0.0.38.7(网站加了cf保护)、0.0.38.8(目前最新)
按照此方法获取了参数。

不知道这个错误是不是验证失败导致的呢?

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.