mirror of
https://github.com/wahyd4/SAI2.git
synced 2026-08-08 21:01:21 +10:00
reduce the logs
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user