promptlooper/backend
John Lightner bf1e9d1c84 MAESTRO: Implement OpenAI-compatible LLM adapter with streaming, retries, and tests
Add OpenAICompatAdapter that works with any OpenAI-compatible API endpoint
(OpenWebUI, vLLM, Ollama, OpenAI, Anthropic via proxy). Features:
- Async HTTP calls via httpx with configurable timeout
- Chat completions format with system + user messages
- Token usage parsing from responses
- Exponential backoff retries (configurable, default 3 attempts)
- Both streaming (SSE) and non-streaming modes
- Model listing and connection testing
- 21 tests covering construction, request building, response parsing,
  retry logic, and error handling
2026-04-07 02:35:52 -05:00
..
engine MAESTRO: Implement OpenAI-compatible LLM adapter with streaming, retries, and tests 2026-04-07 02:35:52 -05:00
mcp MAESTRO: Create full directory structure with placeholder files 2026-04-07 01:40:27 -05:00
routers MAESTRO: Scaffold all 8 router stubs in backend/routers/ with 501 placeholder endpoints 2026-04-07 02:01:11 -05:00
tests MAESTRO: Implement OpenAI-compatible LLM adapter with streaming, retries, and tests 2026-04-07 02:35:52 -05:00
websocket MAESTRO: Create full directory structure with placeholder files 2026-04-07 01:40:27 -05:00
__init__.py MAESTRO: Create full directory structure with placeholder files 2026-04-07 01:40:27 -05:00
auth.py MAESTRO: Create backend/auth.py with JWT, API key auth, and first-boot setup flow 2026-04-07 01:59:24 -05:00
config.py MAESTRO: Create backend/config.py with Pydantic Settings and SQLite/in-process fallback 2026-04-07 01:46:30 -05:00
main.py MAESTRO: Create backend/main.py with FastAPI app, CORS, health check, WebSocket, and router mounting 2026-04-07 01:56:40 -05:00
models.py MAESTRO: Create backend/models.py with all 8 SQLAlchemy ORM models from spec 2026-04-07 01:49:10 -05:00
requirements.txt MAESTRO: Create multi-stage Dockerfile, nginx.conf, and frontend/backend scaffolding 2026-04-07 01:44:52 -05:00
schemas.py MAESTRO: Create backend/schemas.py with all Pydantic request/response schemas 2026-04-07 01:54:02 -05:00
worker.py MAESTRO: Add entrypoint migrations, worker config, and stack integration tests 2026-04-07 02:09:56 -05:00