Skip to content

Commit

Permalink
feat: 添加文件
Browse files Browse the repository at this point in the history
  • Loading branch information
RockChinQ committed Mar 15, 2023
1 parent f2b07af commit 29bf7b5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
17 changes: 17 additions & 0 deletions pkg/process/impls/edgegpt.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
"""接入acheone08/EdgeGPT
"""
from plugins.revLibs.pkg.models.interface import RevLibInterface


class EdgeGPTImpl(RevLibInterface):
"""使用acheong08/EdgeGPT接入new bing
"""

@staticmethod
def create_instance():
pass

def __init__(self):
pass


3 changes: 3 additions & 0 deletions pkg/process/impls/v1impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@

__thr_locks__ = {}


def get_lock(key: str):
if key not in __thr_locks__:
__thr_locks__[key] = threading.Lock()
return __thr_locks__[key]


import logging


class RevChatGPTV1(RevLibInterface):
"""acheong08/ChatGPT的逆向库接口 V1"""
chatbot: Chatbot = None
Expand Down

0 comments on commit 29bf7b5

Please sign in to comment.