基于GPT3.5的猫娘插件(可以指定群友变猫娘!)03/22更新
-
@lixnif 有机会把这一点优化下~
插件又更新了一点点(第三个更新会比较重要,不然会导致谁都能加机器人好友了) -
大佬大佬~我想让私聊时对方发的话需要有前缀‘chat’ ,Chat GPT才会进行回复,请问我该怎么设置呢,还有“变猫娘”这个功能我可以修改聊天记录里的内容吗?
-
@xueji-x 这些功能我都没加进去(我觉得这种需求应该不多(?))
-
大佬你好 小白想问问能不能单独管理群聊?比如我想要A群拥有这个GPT的权限,B群不想给予GPT的权限
-
大佬救我Exception ignored in thread started by: <function protocol at 0x00000236692754C0>
Traceback (most recent call last):
File "D:\QQbot\overflow-2.16.0-2d54df9-SNAPSHOT\OpenAI_Chat3.5-python-server-main\net.py", line 259, in protocol
type_chat(server, index)
File "D:\QQbot\overflow-2.16.0-2d54df9-SNAPSHOT\OpenAI_Chat3.5-python-server-main\net.py", line 112, in type_chat
send_string(server, system.AI_list[index].chat(question)) # 需判断error
File "D:\QQbot\overflow-2.16.0-2d54df9-SNAPSHOT\OpenAI_Chat3.5-python-server-main\AI.py", line 181, in chat
message = self.speak()
File "D:\QQbot\overflow-2.16.0-2d54df9-SNAPSHOT\OpenAI_Chat3.5-python-server-main\AI.py", line 158, in speak
except openai.error.RateLimitError as e: # 需要单独判断是否触发api速度限制
AttributeError: module 'openai' has no attribute 'error' -
发生异常: AttributeError
module 'openai' has no attribute 'error'
File "D:\Mirai_Kaguya\OpenAI_Chat3.5-python-server\AI.py", line 157, in speak
resp = chat_completion_timeout(select_model, self.messages, self.temperature)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mirai_Kaguya\OpenAI_Chat3.5-python-server\AI.py", line 34, in chat_completion_timeout
return openai.ChatCompletion.create(model=model, messages=messages, temperature=temperature)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
openai.lib._old_api.APIRemovedInV1:You tried to access openai.ChatCompletion, but this is no longer supported in openai>=1.0.0 - see the README at https://github.com/openai/openai-python for the API.
You can run
openai migrate
to automatically upgrade your codebase to use the 1.0.0 interface.Alternatively, you can pin your installation to the old version, e.g.
pip install openai==0.28
A detailed migration guide is available here: https://github.com/openai/openai-python/discussions/742
During handling of the above exception, another exception occurred:
File "D:\Mirai_Kaguya\OpenAI_Chat3.5-python-server\AI.py", line 158, in speak
except openai.error.RateLimitError as e: # 需要单独判断是否触发api速度限制
^^^^^^^^^^^^
File "D:\Mirai_Kaguya\OpenAI_Chat3.5-python-server\AI.py", line 181, in chat
message = self.speak()
^^^^^^^^^^^^
File "D:\Mirai_Kaguya\OpenAI_Chat3.5-python-server\net.py", line 112, in type_chat
send_string(server, system.AI_list[index].chat(question)) # 需判断error
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mirai_Kaguya\OpenAI_Chat3.5-python-server\net.py", line 259, in protocol
type_chat(server, index)
AttributeError: module 'openai' has no attribute 'error'