🩹 fix(nutriphi-bot): use correct API field name for image analysis

Change 'image' to 'imageBase64' to match the NutriPhi backend API spec.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Till-JS 2026-02-14 11:28:46 +01:00
parent d81b8aebf2
commit 83c75ce90e

View file

@ -152,7 +152,7 @@ export class NutriPhiService {
): Promise<AIAnalysisResult> {
return this.request<AIAnalysisResult>('/analysis/photo', {
method: 'POST',
body: JSON.stringify({ image: imageBase64, mimeType }),
body: JSON.stringify({ imageBase64, mimeType }),
token,
});
}