部分参数调整

This commit is contained in:
zhaoawd
2025-11-03 00:19:23 +08:00
parent c2a08e4134
commit fe1de87696
4 changed files with 79 additions and 10 deletions

View File

@ -42,7 +42,7 @@ def _env_float(name: str, default: float) -> float:
return default
IMPORT_CHAT_TIMEOUT_SECONDS = _env_float("IMPORT_CHAT_TIMEOUT_SECONDS", 90.0)
IMPORT_CHAT_TIMEOUT_SECONDS = _env_float("IMPORT_CHAT_TIMEOUT_SECONDS", 120.0)
SUPPORTED_IMPORT_MODELS = get_supported_import_models()
@ -298,7 +298,7 @@ def parse_llm_analysis_json(llm_response: LLMResponse) -> Dict[str, Any]:
try:
return json.loads(json_payload)
except json.JSONDecodeError as exc:
preview = json_payload[:2000]
preview = json_payload[:10000]
logger.error("Failed to parse JSON from LLM response content: %s", preview, exc_info=True)
raise ProviderAPICallError("LLM response JSON could not be parsed.") from exc