## LLM Engine Build the core LLM integration engine that communicates with any OpenAI-compatible API. ### Requirements - HTTP client using `reqwest` with streaming support - Support for OpenAI chat completions format (`/v1/chat/completions`) - Streaming responses for real-time status feedback - Configurable base URL, model, temperature, max tokens - Support multiple providers: OpenAI, Anthropic (via proxy), Ollama, LM Studio, custom endpoints - Rate limiting and retry logic with exponential backoff - Timeout handling ### Architecture ``` src/engine/ ├── mod.rs ├── client.rs # HTTP client wrapper ├── prompt.rs # Prompt construction ├── parser.rs # Response parsing └── provider.rs # Provider-specific config ``` ### Acceptance Criteria - [ ] Works with OpenAI, Ollama, and custom endpoints - [ ] Streams responses to terminal with progress indicator - [ ] Handles rate limits gracefully - [ ] API key loaded from config or environment
Activity
ajianaz commentedon May 30, 2026
✅ Implemented in initial release (v0.1.0) — commit b3f31c9