mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 08:46:22 +02:00
minor changes added
This commit is contained in:
parent
a13a0594b8
commit
c1975091ce
1 changed files with 2 additions and 2 deletions
|
|
@ -215,7 +215,7 @@ def validate_research_mode(research_mode: Any) -> str:
|
|||
HTTPException: If validation fails
|
||||
"""
|
||||
if research_mode is None:
|
||||
return "GENERAL" # Default value
|
||||
return "QNA" # Default value
|
||||
|
||||
if not isinstance(research_mode, str):
|
||||
raise HTTPException(
|
||||
|
|
@ -229,7 +229,7 @@ def validate_research_mode(research_mode: Any) -> str:
|
|||
detail="research_mode cannot be empty"
|
||||
)
|
||||
|
||||
valid_modes = ["GENERAL", "DEEP", "DEEPER", "QNA"]
|
||||
valid_modes = ["REPORT_GENERAL", "REPORT_DEEP", "REPORT_DEEPER", "QNA"]
|
||||
if normalized_mode not in valid_modes:
|
||||
raise HTTPException(
|
||||
status_code=400,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue