bug:修复上次更新后不响应的问题

This commit is contained in:
chordfish
2023-03-10 13:55:56 +08:00
parent e2e93afd06
commit c94a9e1ae6
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ def get_prompt(name: str = None) -> str:
with open(json_file, 'r', encoding ='utf-8') as f:
json_content = json.load(f)
logging.debug('succeed to load json: {}'.format(json_file))
return json_content['prompt']
return json_content['prompt'], json_content['name'], json_content['filter']
except FileNotFoundError: