Skip to content

Commit bdc86c1

Browse files
authored
Merge pull request #2268 from 6vision/xunfei_system_prompt
Xunfei supports system prompt(character_desc).
2 parents aaa75e7 + 21efd17 commit bdc86c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bot/xunfei/xunfei_spark_bot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import requests, json
44
from bot.bot import Bot
55
from bot.session_manager import SessionManager
6-
from bot.baidu.baidu_wenxin_session import BaiduWenxinSession
6+
from bot.chatgpt.chat_gpt_session import ChatGPTSession
77
from bridge.context import ContextType, Context
88
from bridge.reply import Reply, ReplyType
99
from common.log import logger
@@ -53,7 +53,7 @@ def __init__(self):
5353
self.host = urlparse(self.spark_url).netloc
5454
self.path = urlparse(self.spark_url).path
5555
# 和wenxin使用相同的session机制
56-
self.sessions = SessionManager(BaiduWenxinSession, model=const.XUNFEI)
56+
self.sessions = SessionManager(ChatGPTSession, model=const.XUNFEI)
5757

5858
def reply(self, query, context: Context = None) -> Reply:
5959
if context.type == ContextType.TEXT:

0 commit comments

Comments
 (0)