Skip to content

Commit d0e2a93

Browse files
authored
fix: Gemini 사용 모델 변경 (#57)
1 parent 53facae commit d0e2a93

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/com/amcamp/domain/chat/application/ChatService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class ChatService {
1515
private final ChatInterface chatInterface;
1616
private final PromptGenerator promptGenerator;
1717

18-
private static final String MODEL = "gemini-pro";
18+
private static final String MODEL = "gemini-2.0-flash-lite";
1919

2020
private ChatResponse getCompletion(ChatRequest request) {
2121
return chatInterface.getCompletion(MODEL, request);

src/main/java/com/amcamp/domain/chat/application/PromptGenerator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
public class PromptGenerator {
77
// GOAL에는 얻으려는 결과를 작성합니다.
88
// CONDITION에는 결과의 조건을 작성합니다.
9-
private static final String GOAL = "다음 줄에 기분을 입력할 거야. 그 기분에 맞는 음악 장르를 2개 추천해줘.";
10-
private static final String CONDITION = "답변은 반드시 영어로 출력하고, 쉼표(,)로 구분된 한 줄의 텍스트로만 출력하고, 다른 설명은 포함하지 말아줘.";
9+
private static final String GOAL = "다음 줄에 기분을 입력할 거야. 그 기분에 맞는 음악 장르를 2개만 추천해줘.";
10+
private static final String CONDITION = "답변은 반드시 영어로 장르 이름만 출력해. 출력 형태는 장르를 쉼표(,)로 구분된 한 줄의 텍스트이고, 다른 설명은 포함하면 안돼.";
1111
private static final String SYSTEM_PROMPT = GOAL + CONDITION;
1212

1313
public String generatePrompt(String input) {

0 commit comments

Comments
 (0)