[feat] plugin: AI Summary
PLACEHOLDER — rewrite this message before opening the PR. Adds a plugin that shows an AI generated summary above the search results, produced by an LLM server the administrator runs and reaches over the OpenAI chat completions API.
This commit is contained in:
@@ -13,6 +13,7 @@ from os.path import dirname, abspath
|
||||
import msgspec
|
||||
|
||||
from typing_extensions import override
|
||||
from .ai_summary import SettingsAISummary
|
||||
from .brand import SettingsBrand
|
||||
from .sxng_locales import sxng_locales
|
||||
from ._settings import SettingsPref
|
||||
@@ -267,6 +268,7 @@ SCHEMA: dict[str, t.Any] = {
|
||||
'networks': {},
|
||||
},
|
||||
'plugins': SettingsValue(dict, {}),
|
||||
'ai_summary': SettingsAISummary,
|
||||
'categories_as_tabs': SettingsValue(dict, CATEGORIES_AS_TABS),
|
||||
'engines': SettingsValue(list, []),
|
||||
'doi_resolvers': {},
|
||||
|
||||
Reference in New Issue
Block a user