reduce the logs

This commit is contained in:
fatwang2
2024-04-10 00:14:19 +08:00
parent 8776528631
commit 093953e9da
2 changed files with 1 additions and 5 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ To use the Bing Web Search API, please visit [this link](https://www.microsoft.c
You have three options for Google Search: you can use the [SearchApi Google Search API](https://www.searchapi.io/) from SearchApi, [Serper Google Search API](https://www.serper.dev) from Serper, or opt for the [Programmable Search Engine](https://developers.google.com/custom-search) provided by Google.
### SearXNG Search
you can host your personal [SearXNG server](https://github.com/searxng/searxng), then you do not need pay for the search api. You just need provide the server address in `SEARXNG_BASE_URL`, Be sure you enable the json format for the SearXNG server.
you can host your personal [SearXNG server](https://github.com/searxng/searxng), then you do not need pay for the search api. You just need provide the server address in `SEARXNG_BASE_URL`, plz be sure you enable the json format for the SearXNG server.
## Deployment
### Zeabur
-4
View File
@@ -404,8 +404,6 @@ def search_with_searXNG(query:str,url:str):
response.raise_for_status()
search_results = response.json()
logger.info("JSON Response:")
logger.info(search_results)
pedding_urls = []
conv_links = []
@@ -431,7 +429,6 @@ def search_with_searXNG(query:str,url:str):
'url':url,
'snippet':snippet
})
logger.info(conv_links)
results = []
futures = []
@@ -606,7 +603,6 @@ async def get_related_questions(_app, query, contexts):
]
)
logger.info('Response received from Claude-3 model')
logger.info(f"Claude-3 response: {response}")
if response.content and len(response.content) > 0:
related = []