소스 검색

Merge pull request #2268 from 6vision/xunfei_system_prompt

Xunfei supports system prompt(character_desc).
master
vision GitHub 3 달 전
부모
커밋
bdc86c16ec
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      bot/xunfei/xunfei_spark_bot.py

+ 2
- 2
bot/xunfei/xunfei_spark_bot.py 파일 보기

@@ -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
@@ -53,7 +53,7 @@ class XunFeiBot(Bot):
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:


Loading…
취소
저장