mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
Duplicated Info box
This commit is contained in:
parent
72e8b5c354
commit
b9eb927676
7 changed files with 204 additions and 170 deletions
17
searx/plugins/chat.py
Normal file
17
searx/plugins/chat.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
from searx.search import SearchWithPlugins
|
||||
|
||||
|
||||
name = "Chat Plugin"
|
||||
description = "Similar to bing GPT or google bard in their respective searches"
|
||||
default_on = False
|
||||
preference_section = 'general'
|
||||
|
||||
def post_search(request, search: SearchWithPlugins) -> None:
|
||||
"""Called after the search is done."""
|
||||
search_request = search.search_query
|
||||
container = search.result_container
|
||||
# container.infoboxes.append(container.infoboxes[0])
|
||||
container.chat_box = container.infoboxes
|
||||
print(search_request)
|
||||
|
||||
print("HELLO WORLD =====================================================================")
|
||||
Loading…
Add table
Add a link
Reference in a new issue