fix: return 4 values from generate_ai_report when API key missing
This commit is contained in:
@@ -206,7 +206,7 @@ def generate_ai_report(
|
|||||||
prompt_template = config.get("prompt_template", "")
|
prompt_template = config.get("prompt_template", "")
|
||||||
|
|
||||||
if not api_key:
|
if not api_key:
|
||||||
return None, "未配置API Key,请在设置页面配置"
|
return None, None, "未配置API Key,请在设置页面配置", None
|
||||||
|
|
||||||
# 从问题文件内容中提取关键信息
|
# 从问题文件内容中提取关键信息
|
||||||
def extract_problem_info(content_str):
|
def extract_problem_info(content_str):
|
||||||
|
|||||||
Reference in New Issue
Block a user