You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/oikb/daemon.py
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ async def verify_api_key(
38
38
app=FastAPI(
39
39
title="oikb",
40
40
description="Sync engine for Open WebUI Knowledge Bases. Trigger syncs, check status, and query history.",
41
-
version="0.2.1",
41
+
version="0.2.2",
42
42
)
43
43
44
44
# Runtime state populated by start_daemon().
@@ -103,18 +103,18 @@ async def history_endpoint(
103
103
104
104
105
105
@app.post(
106
-
"/sync/{source}",
106
+
"/sync/{identifier}",
107
107
operation_id="trigger_sync",
108
-
summary="Trigger an immediate sync for a source",
108
+
summary="Trigger an immediate sync by alias or KB ID",
109
109
dependencies=[Depends(verify_api_key)],
110
110
)
111
-
asyncdeftrigger_sync(source: str):
112
-
"""Triggers an immediate sync for the given source or Knowledge Base ID. The sync runs asynchronously in the background. Use get_sync_status to check progress."""
111
+
asyncdeftrigger_sync(identifier: str):
112
+
"""Triggers an immediate sync matching the given alias or Knowledge Base ID. The sync runs asynchronously in the background. Use get_sync_status to check progress."""
0 commit comments