docs: F-03/04/05 done — board aktualisiert, alle requirements done

11 Tests grün. F-06 (Integration) ist jetzt Ready-Set.
Session-Prompts für F-03/04/05 archiviert.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-03 23:42:13 +02:00
parent 35a363500f
commit 93e17488a5
7 changed files with 136 additions and 16 deletions

View File

@@ -0,0 +1,25 @@
# Session-Prompt F-05 — Modell-HTTP-Connector
```
Modell: Sonnet
Du arbeitest in /Users/tarikmoussa/Desktop/files/tg-bot-jetson auf einem neuen Branch
`feat/model-connector` (von `main`).
## Aufgabe
Implementiere `src/bot/connector.py`: async httpx-Client der POST /v1/chat/completions
an MODEL_BASE_URL sendet (OpenAI-kompatible API). Referenz: OpenAI API Spec.
## Akzeptanzkriterien
- [ ] `ask_model(user_message: str) -> str` — async, gibt den Assistant-Text zurück.
- [ ] Nutzt `get_settings().model_base_url` und `model_name`.
- [ ] Timeout 60 s. Fehler werden als Exception weitergegeben (kein Swallow).
- [ ] `uv run pytest tests/test_connector.py -v` → grün (≥ 2 Tests, httpx gemockt).
## Nicht anfassen
`whitelist.py`, `handlers.py`, `main.py`, `config.py`.
## Commit & Push
- `feat: add async model HTTP connector (F-05)`
- Trailer: `Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>`
```