Skip to content

Commit

Permalink
fix: EdgeGPT的兼容性问题
Browse files Browse the repository at this point in the history
  • Loading branch information
RockChinQ committed Jun 8, 2023
1 parent 9f2d3a7 commit 866b4fa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import plugins.revLibs.pkg.process.revss as revss
import plugins.revLibs.pkg.process.procmsg as procmsg
import plugins.revLibs.pkg.process.proccmd as proccmd
from EdgeGPT import ConversationStyle
from EdgeGPT.EdgeGPT import ConversationStyle

This comment has been minimized.

Copy link
@suiwfeng

suiwfeng Jul 27, 2023

EdgeGPT.EdgeGPT is not a package

This comment has been minimized.

Copy link
@suiwfeng

suiwfeng Jul 27, 2023

How to deal with it


"""
接入ChatGPT的逆向库
Expand Down
2 changes: 1 addition & 1 deletion pkg/process/impls/edgegpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import asyncio

from plugins.revLibs.pkg.models.interface import RevLibInterface
from EdgeGPT import Chatbot, ConversationStyle
from EdgeGPT.EdgeGPT import Chatbot, ConversationStyle


ref_num_loop = ['¹', '²', '³', '⁴', '⁵', '⁶', '⁷', '⁸', '⁹', '¹⁰', '¹¹', '¹²', '¹³', '¹⁴', '¹⁵', '¹⁶', '¹⁷', '¹⁸', '¹⁹', '²⁰']
Expand Down
2 changes: 1 addition & 1 deletion revcfg-template.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from EdgeGPT import ConversationStyle
from EdgeGPT.EdgeGPT import ConversationStyle
# 选择使用的逆向库
# 目前支持以下库:
# - "acheong08/ChatGPT.V1": acheong08/ChatGPT库的V1版本
Expand Down

0 comments on commit 866b4fa

Please sign in to comment.