Timothy J. Baek 11 mesi fa
parent
commit
eead69068c
1 ha cambiato i file con 5 aggiunte e 3 eliminazioni
  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,
+        )
     ),
 )