Browse Source

fix: type casting

Timothy J. Baek 10 months ago
parent
commit
eead69068c
1 changed files with 5 additions and 3 deletions
  1. 5 3
      backend/config.py

+ 5 - 3
backend/config.py

@@ -680,9 +680,11 @@ Question:
 SEARCH_QUERY_PROMPT_LENGTH_THRESHOLD = PersistentConfig(
     "SEARCH_QUERY_PROMPT_LENGTH_THRESHOLD",
     "task.search.prompt_length_threshold",
-    os.environ.get(
-        "SEARCH_QUERY_PROMPT_LENGTH_THRESHOLD",
-        100,
+    int(
+        os.environ.get(
+            "SEARCH_QUERY_PROMPT_LENGTH_THRESHOLD",
+            100,
+        )
     ),
 )