浏览代码

fix: import openai.error

master
lanvent 2 年前
父节点
当前提交
fd64f88a7e
共有 3 个文件被更改,包括 3 次插入1 次删除
  1. +1
    -1
      bot/chatgpt/chat_gpt_bot.py
  2. +1
    -0
      bot/openai/open_ai_bot.py
  3. +1
    -0
      bot/openai/open_ai_image.py

+ 1
- 1
bot/chatgpt/chat_gpt_bot.py 查看文件

@@ -11,8 +11,8 @@ from common.log import logger
from common.token_bucket import TokenBucket from common.token_bucket import TokenBucket
from common.expired_dict import ExpiredDict from common.expired_dict import ExpiredDict
import openai import openai
import openai.error
import time import time

# OpenAI对话模型API (可用) # OpenAI对话模型API (可用)
class ChatGPTBot(Bot,OpenAIImage): class ChatGPTBot(Bot,OpenAIImage):
def __init__(self): def __init__(self):


+ 1
- 0
bot/openai/open_ai_bot.py 查看文件

@@ -9,6 +9,7 @@ from bridge.reply import Reply, ReplyType
from config import conf from config import conf
from common.log import logger from common.log import logger
import openai import openai
import openai.error
import time import time


user_session = dict() user_session = dict()


+ 1
- 0
bot/openai/open_ai_image.py 查看文件

@@ -1,5 +1,6 @@
import time import time
import openai import openai
import openai.error
from common.token_bucket import TokenBucket from common.token_bucket import TokenBucket
from common.log import logger from common.log import logger
from config import conf from config import conf


正在加载...
取消
保存