Summary
The summarization pipeline fails when the configured GMI model deepseek-ai/DeepSeek-V4-Flash is not available for the user's organization, with no fallback.
Sentry Issue
Error: OpenHuman API error (404 Not Found): {"success":false,"error":"GMI model 'deepseek-ai/DeepSeek-V4-Flash' is not available for your organization. Set GMI_SUMMARIZATION_MODEL_ID to a model ID returned by GET /gmi/v1/models."}
Environment: staging
Affected platform: macOS (MacBookAir7,2, x86_64, Bengaluru, India)
Analysis
- The error message from the API is clear: the model isn't provisioned for the org
- The API suggests setting
GMI_SUMMARIZATION_MODEL_ID — but this env var is not accessible to end users
- This blocks the entire summarization flow for affected users
Suggested Fix
- Auto-discover available models — on startup or first summarization call, query
GET /gmi/v1/models and select the best available summarization model
- Fallback chain — if the configured model isn't available, try a default list of known summarization models before failing
- Surface the config option — if
GMI_SUMMARIZATION_MODEL_ID is user-configurable, expose it in Settings; if not, handle it server-side
Priority: High
Summary
The summarization pipeline fails when the configured GMI model
deepseek-ai/DeepSeek-V4-Flashis not available for the user's organization, with no fallback.Sentry Issue
Error:
OpenHuman API error (404 Not Found): {"success":false,"error":"GMI model 'deepseek-ai/DeepSeek-V4-Flash' is not available for your organization. Set GMI_SUMMARIZATION_MODEL_ID to a model ID returned by GET /gmi/v1/models."}Environment: staging
Affected platform: macOS (MacBookAir7,2, x86_64, Bengaluru, India)
Analysis
GMI_SUMMARIZATION_MODEL_ID— but this env var is not accessible to end usersSuggested Fix
GET /gmi/v1/modelsand select the best available summarization modelGMI_SUMMARIZATION_MODEL_IDis user-configurable, expose it in Settings; if not, handle it server-sidePriority: High