feat: add WEB_SEARCH_RESULT_COUNT to control max number of results

This commit is contained in:
Jun Siang Cheah
2024-05-11 19:07:36 +08:00
parent 635951b55c
commit fb8069123e
6 changed files with 12 additions and 11 deletions

View File

@@ -549,6 +549,7 @@ BRAVE_SEARCH_API_KEY = os.getenv("BRAVE_SEARCH_API_KEY", "")
SERPSTACK_API_KEY = os.getenv("SERPSTACK_API_KEY", "")
SERPSTACK_HTTPS = os.getenv("SERPSTACK_HTTPS", "True").lower() == "true"
SERPER_API_KEY = os.getenv("SERPER_API_KEY", "")
WEB_SEARCH_RESULT_COUNT = int(os.getenv("WEB_SEARCH_RESULT_COUNT", "10"))
####################################
# Transcribe