Skip to content

Commit 6404a1b

Browse files
committed
25.11.20
fork 레포지토리에 분기 후 첫 commit
1 parent 6fc401d commit 6404a1b

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

src/main/java/com/webservice/algorithmchef/dto/gemini/GeminiRecipeRequest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,21 @@ public class GeminiRecipeRequest {
88
public record PreferRequest(
99
Long userPkId, // DB의 User PK (id)
1010
List<String> excludedTitles
11+
// client의 첫 요청시 gemini는 비어있는 string 리스트 반환.
12+
// 재요청 시 front에서 요리명만 해당 리스트에 담아 전송. 그러면 gemini는 해당 레시피는 제외하여 탐색.
1113
) {}
1214

1315
// 2. Speech-to-Text 조건 기반 추천 요청
1416
public record ConditionRequest(
1517
Long userPkId,
1618
List<String> excludedTitles,
17-
String condition // 기분, 상황
19+
String condition // 기분, 상황 등 조건
1820
) {}
1921

2022
// 3. 임박한 재료 추천 요청
2123
public record ExpirRequest(
2224
Long userPkId,
2325
List<String> excludedTitles,
24-
List<String> ingredients // 냉장고 재료
26+
List<String> ingredients // 소비기한 임박 재료
2527
) {}
2628
}

src/main/java/com/webservice/algorithmchef/service/GeminiRecipeService.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,15 @@ private List<GeminiRecipeResponse> generateAndCallGemini(
154154
4. 만약 위 사이트에서 적절한 레시피를 찾을 수 없다면, 차라리 추천하지 마.
155155
156156
=== 5. 출력 형식 (JSON Only) ===
157-
인사말, 설명, 마크다운(```) 없이 오직 아래 JSON 배열만 반환해.
157+
인사말, 설명, 마크다운(```) 없이 오직 아래 JSON 배열만 반환해. 찾을 수 없는 항목은 자료형에 맞게 0.0 혹은 "정보 없음"으로 반환해.
158158
[
159159
{
160160
"name": "요리명",
161161
"description": "요리에 대한 간단한 개요"
162-
"kcal": "몇 칼로리"
162+
"kcal": 실수, 소숫점 첫째자리까지(예시: 365.0)
163163
"portions": "몇 인분"
164164
"time": "예상 조리 시간",
165+
"imageUrl" : "완성된 요리 사진 url 주소"
165166
"ingredients": ["재료1", "재료2"],
166167
"instructions": ["1. ...", "2. ..."],
167168
"tip": "레시피에 관한 기타 참고사항 및 추천사항",

0 commit comments

Comments
 (0)