promptlooper/backend/tests
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
..
__init__.py MAESTRO: Create full directory structure with placeholder files 2026-04-07 01:40:27 -05:00
test_adapters_base.py MAESTRO: Implement BaseAdapter abstract class and AdapterResponse dataclass 2026-04-07 02:32:57 -05:00
test_alembic.py MAESTRO: Set up Alembic with initial migration for all 8 ORM models 2026-04-07 01:52:03 -05:00
test_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
test_config.py MAESTRO: Create backend/config.py with Pydantic Settings and SQLite/in-process fallback 2026-04-07 01:46:30 -05:00
test_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
test_models.py MAESTRO: Create backend/models.py with all 8 SQLAlchemy ORM models from spec 2026-04-07 01:49:10 -05:00
test_openai_compat.py MAESTRO: Implement OpenAI-compatible LLM adapter with streaming, retries, and tests 2026-04-07 02:35:52 -05:00
test_routers.py MAESTRO: Scaffold all 8 router stubs in backend/routers/ with 501 placeholder endpoints 2026-04-07 02:01:11 -05:00
test_schemas.py MAESTRO: Create backend/schemas.py with all Pydantic request/response schemas 2026-04-07 01:54:02 -05:00
test_stack_integration.py MAESTRO: Add entrypoint migrations, worker config, and stack integration tests 2026-04-07 02:09:56 -05:00
test_worker.py MAESTRO: Add entrypoint migrations, worker config, and stack integration tests 2026-04-07 02:09:56 -05:00