llm-api/wiki_router.py aktualisiert
All checks were successful
Deploy Trainer_LLM to llm-node / deploy (push) Successful in 1s
All checks were successful
Deploy Trainer_LLM to llm-node / deploy (push) Successful in 1s
This commit is contained in:
parent
375ed57778
commit
597b94ff25
|
|
@ -179,7 +179,7 @@ def _fetch_pageinfo_batch(titles: List[str]) -> Dict[str, Dict[str, Any]]:
|
|||
**Hinweis**: Je nach Wiki-Konfiguration sind detaillierte Infos (Generator/Sitename) nur **nach Login** sichtbar.
|
||||
"""
|
||||
),
|
||||
response_description="`{"status":"ok"}` oder mit `wiki.sitename/generator` bei `verbose=1`.",
|
||||
response_description="`{\"status\":\"ok\"}` oder mit `wiki.sitename/generator` bei `verbose=1`.",
|
||||
openapi_extra={
|
||||
"x-codeSamples": [
|
||||
{"lang": "bash", "label": "curl", "source": "curl -s 'http://localhost:8000/import/wiki/health?verbose=1' | jq ."}
|
||||
|
|
@ -207,11 +207,11 @@ def health(verbose: Optional[int] = Query(default=0, description="1 = Site-Metad
|
|||
**Besonderheiten**
|
||||
- Erwartet **Benutzername/Passwort im Body** (keine .env-Creds).
|
||||
- Verwendet vor dem Login ein Logintoken (`meta=tokens`).
|
||||
- Rückgabe `{"status":"success"}` bei Erfolg, sonst **401**.
|
||||
- Rückgabe `{\"status\":\"success\"}` bei Erfolg, sonst **401**.
|
||||
- Respektiert Retry/Throttle aus `.env`.
|
||||
"""
|
||||
),
|
||||
response_description="`{"status":"success"}` bei Erfolg."
|
||||
response_description="`{\"status\":\"success\"}` bei Erfolg."
|
||||
)
|
||||
def login(data: WikiLoginRequest):
|
||||
# Token holen
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user