mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-05-03 01:11:35 +08:00
feat: support skills
This commit is contained in:
@@ -7,7 +7,6 @@ import requests
|
||||
|
||||
from bot.baidu.baidu_wenxin_session import BaiduWenxinSession
|
||||
from bot.bot import Bot
|
||||
from bot.openai.open_ai_image import OpenAIImage
|
||||
from bot.session_manager import SessionManager
|
||||
from bridge.context import ContextType
|
||||
from bridge.reply import Reply, ReplyType
|
||||
@@ -15,6 +14,15 @@ from common import const
|
||||
from common.log import logger
|
||||
from config import conf
|
||||
|
||||
# Optional OpenAI image support
|
||||
try:
|
||||
from bot.openai.open_ai_image import OpenAIImage
|
||||
_openai_image_available = True
|
||||
except Exception as e:
|
||||
logger.warning(f"OpenAI image support not available: {e}")
|
||||
_openai_image_available = False
|
||||
OpenAIImage = object # Fallback to object
|
||||
|
||||
user_session = dict()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user