Users can upload a photo of a coffee bag or type a text prompt to auto-fill roaster/roast form fields via OpenRouter's chat completions API. The feature is opt-in: hidden when BREWLOG_OPENROUTER_API_KEY is not set. - Add src/infrastructure/ai.rs with OpenRouter client, prompt templates, JSON extraction from model responses, and unit tests - Add extract-roaster and extract-roast API endpoints behind auth - Add extraction UI (photo button + text input) to both form templates - Add openrouter_api_key and openrouter_model to CLI args and AppState - Enable reqwest gzip feature for compressed API responses - Default model set to openrouter/free (auto-selects available models) - Prompts instruct model to use web search for missing details |
||
|---|---|---|
| .. | ||
| client | ||
| repositories | ||
| ai.rs | ||
| auth.rs | ||
| backup.rs | ||
| database.rs | ||
| mod.rs | ||
| osm.rs | ||