From 96e31f84ccd07e23fbfe596a71174d502fbdbccd Mon Sep 17 00:00:00 2001 From: choikang Date: Mon, 25 Aug 2025 22:51:43 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=EB=8F=84=EC=BB=A4=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.prod.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index d56714b..8b50ca0 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -79,6 +79,8 @@ services: food-ai: image: gosua/food-ai:1.3.4 container_name: food-ai + ports: + - "8000:8000" # ← 추가 networks: [ my-network ] healthcheck: test: ["CMD", "python", "-c", "import urllib.request,sys; r=urllib.request.urlopen('http://127.0.0.1:8000/healthz', timeout=5); sys.exit(0 if r.getcode()==200 else 1)"] @@ -87,7 +89,6 @@ services: retries: 12 start_period: 120s - socket: image: dae9utang/babmukdang-socket:v1.0.0 container_name: babmukdang-socket From fd29e4d18340c5eefdd0507c5dec133cc06e4aa2 Mon Sep 17 00:00:00 2001 From: hwi-hwi-hwi Date: Mon, 25 Aug 2025 23:48:00 +0900 Subject: [PATCH 2/2] =?UTF-8?q?fix#53:=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/example/timetoeat/infra/ai/HttpAiGateway.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/com/example/timetoeat/infra/ai/HttpAiGateway.java b/src/main/java/com/example/timetoeat/infra/ai/HttpAiGateway.java index cc8f299..2dfc3d4 100644 --- a/src/main/java/com/example/timetoeat/infra/ai/HttpAiGateway.java +++ b/src/main/java/com/example/timetoeat/infra/ai/HttpAiGateway.java @@ -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")