mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
17 lines
No EOL
609 B
Python
17 lines
No EOL
609 B
Python
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 =====================================================================") |