Skip to content

Commit

Permalink
Merge pull request #2268 from 6vision/xunfei_system_prompt
Browse files Browse the repository at this point in the history
Xunfei supports system prompt(character_desc).
  • Loading branch information
6vision authored Aug 27, 2024
2 parents aaa75e7 + 21efd17 commit bdc86c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bot/xunfei/xunfei_spark_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import requests, json
from bot.bot import Bot
from bot.session_manager import SessionManager
from bot.baidu.baidu_wenxin_session import BaiduWenxinSession
from bot.chatgpt.chat_gpt_session import ChatGPTSession
from bridge.context import ContextType, Context
from bridge.reply import Reply, ReplyType
from common.log import logger
Expand Down Expand Up @@ -53,7 +53,7 @@ def __init__(self):
self.host = urlparse(self.spark_url).netloc
self.path = urlparse(self.spark_url).path
# 和wenxin使用相同的session机制
self.sessions = SessionManager(BaiduWenxinSession, model=const.XUNFEI)
self.sessions = SessionManager(ChatGPTSession, model=const.XUNFEI)

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

0 comments on commit bdc86c1

Please sign in to comment.