Pass response_schema to all three generate_content calls so Gemini constrains its output to valid enum values and correct JSON structure: - routines.py: _StepOut.action_type Optional[str] → Optional[GroomingAction] - skincare.py: add _SkinAnalysisOut(PydanticBase) with OverallSkinState, SkinType, SkinTexture, BarrierState, SkinConcern enums; add response_schema - products.py: pass ProductParseResponse directly as response_schema; remove NaN/Infinity/undefined regex cleanup, markdown-fence extraction, finish_reason logging, and re import — all now unnecessary Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| alembic | ||
| innercontext | ||
| tests | ||
| .env.example | ||
| .python-version | ||
| alembic.ini | ||
| db.py | ||
| main.py | ||
| pyproject.toml | ||
| README.md | ||
| skincare.yaml | ||
| uv.lock | ||
See the root README for setup and usage instructions.