Commit graph

6 commits

Author SHA1 Message Date
Brandon Wolfgang
0bc50f76a2 test: cover Ollama request timeout errors
- Verify generation requests include an abort signal
- Assert timeout-related abort errors propagate with the expected error name
- Restore the global fetch implementation after the test
2026-10-21 21:38:54 -05:00
Brandon Wolfgang
7771359dd4 test: cover unreachable Ollama service errors
- Verify network-level fetch failures propagate from the generation client
- Assert the original error type and message are preserved
- Restore the global fetch implementation after the test
2026-10-21 21:38:24 -05:00
Brandon Wolfgang
8cfcb1a3cf feat: integrate Ollama inference with API and readiness checks
- Add an Ollama client for Qwen3 8B generation with request timeouts and HTTP error handling
- Implement POST /generate with request validation and sanitized failure responses
- Update GET /ready to report Ollama availability and return HTTP 503 when unavailable
- Add unit and integration tests for generation, dependency health, and failure handling
- Document implemented API endpoints, setup instructions, scripts, and remaining planned capabilities in README
2026-10-21 21:37:51 -05:00
Brandon Wolfgang
1f354e8b5c Merge branch 'feat/phase-1-api-foundation' 2026-10-21 21:36:16 -05:00
Brandon Wolfgang
66dc2b2065 feat: implement Phase 1 API foundation and testing
- Configure the Node.js test runner with tsx
- Add endpoint tests for health, readiness, and echo request validation
- Cover input length boundaries, invalid message types, unknown routes, and unexpected errors
- Extract the Fastify app factory to support isolated testing without starting the server
- Add centralized error handling and consistent 404 responses
- Guard server startup to prevent listeners from opening when the module is imported
2026-10-21 21:32:40 -05:00
Brandon Wolfgang
ed9259d35e Initialize local AI platform project 2026-10-21 16:57:52 -05:00