fix(llm): fix service_role grants, deepseek constraint, async errors, model picker (#10)

↗ view on GitHub · EduardoCarone · 2026-07-11 · 6f61fcde

- GRANT service_role TO authenticator (PostgREST SET ROLE fix)
- GRANT ALL privileges to service_role on public schema
- Add 'deepseek' to user_api_keys provider CHECK constraint
- Install express-async-errors + centralized error handler
- Model picker shows only DeepSeek models (remove Claude/Gemini/OpenAI)
- Default models changed to deepseek-v4-pro/flash
- Frontend fallbacks updated to DeepSeek models

Fixes: MIKE-DIAG-LLM-KEYS-01 root causes 1-6

Co-authored-by: Januário <januario@Januarios-Mac-mini.local>
Repository Edu-Carone-SA/mike
Author EduardoCarone <educarone@gmail.com>
Authored
Parents d769a4ff
Stats 11 files changed , +64 , -27
Part of DeepSeek V4 becomes the sole production LLM provider

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-6f61fcde.md from inside the repo you want the change in.

⬇ Download capture-commit-6f61fcde.md