Zo doen wijdat in oost

This commit is contained in:
2026-10-16 07:20:44 +02:00
parent 25d9cb1c7d
commit 6f80a820da
229 changed files with 23894 additions and 74 deletions
@@ -43,6 +43,14 @@ class DeepsearchService(JobService):
help="Model sent to the internal AI gateway for query planning and report synthesis. Blank uses the gateway default model.",
group="DeepSearch",
),
ConfigField(
"deepsearch_social",
"Include social search",
type="bool",
default=False,
help="Add public discussion from Hacker News, Stack Overflow, GitHub, dev.to, Mastodon and (when donors are online) Reddit to the sources of a signed-in member's research. Off by default.",
group="DeepSearch",
),
]
def session_dir(self, uid: str) -> Path:
@@ -68,6 +76,9 @@ class DeepsearchService(JobService):
payload["collection"] = self.collection_name(uid)
payload["model"] = self.get_config()["deepsearch_model"] or INTERNAL_MODEL
payload["cached_hashes"] = self._cached_hashes(database)
payload["social"] = bool(
job.get("owner_kind") == "user" and self.get_config()["deepsearch_social"]
)
payload_path = output_dir / "payload.json"
await asyncio.to_thread(payload_path.write_text, json.dumps(payload), encoding="utf-8")