Skip to content

Commit

Permalink
更新edgeGPT的方式和依赖版本 (lss233#1041)
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryliang122 committed Jul 11, 2023
1 parent 62b3cff commit 4124979
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions adapter/ms/bing.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@

from constants import config
from adapter.botservice import BotAdapter
from EdgeGPT import Chatbot as EdgeChatbot, ConversationStyle, NotAllowedToAccess
from EdgeGPT.EdgeGPT import Chatbot as EdgeChatbot, ConversationStyle, NotAllowedToAccess
from contextlib import suppress

from constants import botManager
from drawing import DrawingAPI
from exceptions import BotOperationNotSupportedException
from loguru import logger
from ImageGen import ImageGenAsync
from EdgeGPT.ImageGen import ImageGenAsync
from graia.ariadne.message.element import Image as GraiaImage

image_pattern = r"!\[.*\]\((.*)\)"
Expand Down
2 changes: 1 addition & 1 deletion conversation.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from typing import List, Dict, Optional

import httpx
from EdgeGPT import ConversationStyle
from EdgeGPT.EdgeGPT import ConversationStyle
from graia.amnesia.message import MessageChain
from graia.ariadne.message.element import Image as GraiaImage, Element
from loguru import logger
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pygments~=2.15.1
imgkit~=1.2.3
qrcode~=7.4.2
openai~=0.27.8
EdgeGPT==0.8.2
EdgeGPT==0.12.1
aiohttp~=3.8.4
OpenAIAuth
urllib3~=1.26.15
Expand Down

0 comments on commit 4124979

Please sign in to comment.