@@ -11,8 +11,8 @@ from common.log import logger | |||
from common.token_bucket import TokenBucket | |||
from common.expired_dict import ExpiredDict | |||
import openai | |||
import openai.error | |||
import time | |||
# OpenAI对话模型API (可用) | |||
class ChatGPTBot(Bot,OpenAIImage): | |||
def __init__(self): | |||
@@ -9,6 +9,7 @@ from bridge.reply import Reply, ReplyType | |||
from config import conf | |||
from common.log import logger | |||
import openai | |||
import openai.error | |||
import time | |||
user_session = dict() | |||
@@ -1,5 +1,6 @@ | |||
import time | |||
import openai | |||
import openai.error | |||
from common.token_bucket import TokenBucket | |||
from common.log import logger | |||
from config import conf | |||