(fix:sources) preloaded docs have ids too

This commit is contained in:
ManishMadan2882
2025-03-20 09:39:30 +05:30
parent 9f17eb1d28
commit 02c8bd06f5

View File

@@ -587,6 +587,7 @@ class CombinedJson(Resource):
user = "local"
data = [
{
"id": "default",
"name": "Default",
"date": "default",
"model": settings.EMBEDDINGS_NAME,
@@ -614,6 +615,7 @@ class CombinedJson(Resource):
if "duckduck_search" in settings.RETRIEVERS_ENABLED:
data.append(
{
"id": "duckduck_search",
"name": "DuckDuckGo Search",
"date": "duckduck_search",
"model": settings.EMBEDDINGS_NAME,
@@ -626,6 +628,7 @@ class CombinedJson(Resource):
if "brave_search" in settings.RETRIEVERS_ENABLED:
data.append(
{
"id": "brave_search",
"name": "Brave Search",
"language": "en",
"date": "brave_search",