Spaces:
Running
Running
Commit History
-
fix(analysis): enforce 3-key JSON output and fix French placeholder responses
Moncef Souri- Rewrite prompt to instruction-style with filled example to prevent model from echoing placeholder strings as values - Strip extra keys (recommended_products, problèmes, etc.) at parse time - Add alias mapping for alternate key names (advice, analysis, routine variants) - Add placeholder guard to detect and reject echoed template strings - Sync default fallback responses to match 3-key structure - singleton Groq client + deduplicate detections before LLM call8cff4cb