Add multi-provider LLM support with model selection

- Support OpenRouter, OpenAI, and Anthropic providers
- Fetch available models after entering API key
- OpenRouter sorted by price (cheapest first)
- Store provider, model, and key per user
- Update reflections API to use selected provider/model

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Gemini Agent
2026-01-24 12:23:31 +00:00
parent 9711baf54e
commit 83ee6eefec
8 changed files with 952 additions and 124 deletions

View File

@@ -0,0 +1,2 @@
ALTER TABLE `users` ADD `llm_provider` text;--> statement-breakpoint
ALTER TABLE `users` ADD `llm_model` text;