Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,7 @@ public InferenceResultDto inferFoodSync(Long articleId, Long authorId, String im
mealAtKst.atZone(ZoneId.of("Asia/Seoul")).toOffsetDateTime();

MultipartBodyBuilder mb = new MultipartBodyBuilder();
mb.part("image", new FileSystemResource(imagePath)); // 사진 1장
mb.part("user_id", authorId);
mb.part("article_id", articleId);
// 멀티파트에는 문자열로(+09:00 포함)
mb.part("meal_at", mealAtOffset.toString());
mb.part("image", new FileSystemResource(imagePath));

JsonNode root = aiWebClient.post()
.uri(props.getFoodBaseUrl() + "/v1/infer")
Expand Down