From eead69068c96f16c1ad5d6de9dcbdbc86bc85b82 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Wed, 12 Jun 2024 01:35:42 -0700 Subject: [PATCH] fix: type casting --- backend/config.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/backend/config.py b/backend/config.py index 32e64347e..30a23f29e 100644 --- a/backend/config.py +++ b/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, + ) ), )