Skip to content

Fix AI diet callback contract - #9

Merged
cfcromn merged 1 commit into
developfrom
ai-diet-callback-contract
Jul 7, 2026
Merged

cfcromn merged 1 commit into
developfrom
ai-diet-callback-contract

Conversation

@cfcromn

@cfcromn cfcromn commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • update AI save flow to create slots through /diets/ai-callback with X-Internal-Token
  • keep /meals as the menu/nutrition fill step using the returned slot id
  • pass INTERNAL_API_KEY in prod compose and update the mock backend/test

Root cause

Hololog-Server changed slot creation from POST /diets to POST /diets/ai-callback and now requires X-Internal-Token. Hololog-AI was still using the old callback contract.

Validation

  • uv run python -m compileall app test
  • uv run python -m unittest test.test_ai_callback_contract

Closes #8

@cfcromn
cfcromn marked this pull request as ready for review July 7, 2026 14:26
@cfcromn
cfcromn merged commit fea3858 into develop Jul 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant