Skip to content

Commit

Permalink
fix the threshold env to float conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
northdpole committed Sep 28, 2023
1 parent bfbf8c5 commit 42e6963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/prompt_client/prompt_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)

SIMILARITY_THRESHOLD = os.environ.get("CHATBOT_SIMILARITY_THRESHOLD", None) or 0.7
SIMILARITY_THRESHOLD = float(os.environ.get("CHATBOT_SIMILARITY_THRESHOLD", "0.7"))


def is_valid_url(url):
Expand Down

0 comments on commit 42e6963

Please sign in to comment.