新增对话模型,讯飞星火lite

This commit is contained in:
DEII 2024-07-25 21:51:29 +08:00
parent 3e0179c9e1
commit a53f6d4507
1 changed files with 2 additions and 0 deletions

View File

@ -119,6 +119,8 @@ async def modelReply(senderName, senderId, text, modelHere=modelDefault, trustUs
checkIfRepFirstTime=False): checkIfRepFirstTime=False):
global chatGLMData global chatGLMData
logger.info(modelHere) logger.info(modelHere)
if senderName==None:
senderName="指挥"
try: try:
if type(allcharacters.get(modelHere)) == dict: if type(allcharacters.get(modelHere)) == dict:
with open('config/settings.yaml', 'r', encoding='utf-8') as f: with open('config/settings.yaml', 'r', encoding='utf-8') as f: