Skip to content

Commit

Permalink
fix: AI 생성 메시지에 이모지가 포함되지 않도록 프롬프트 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
rokaf6444 committed Nov 27, 2024
1 parent 3462b57 commit 498aa9f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.pictalk.message.service;


import com.pictalk.global.component.OpenAIClient;
import com.pictalk.message.dto.MessageRequestDto;
import com.pictalk.message.dto.MessageResponseDto;
Expand All @@ -15,8 +14,8 @@ public class AIMessageService {
private static final String PROMPT_TEMPLATE =
"당신은 사용자로부터 상황을 입력받아 이를 토대로 문자 메시지를 만들어야 합니다.\n" +
"이 메시지는 한번에 여러 명의 사용자에게 보내는 용도이며, 반드시 상황에 맞는 내용으로 구성되어야 합니다.\n" +
"키워드는 반드시 포함되어야 하며, 이모지나 불필요한 특수 문자는 포함되지 않아야 합니다.\n" +
"또한, 상황에 따라 적절한 어투, 용어를 사용해야 합니다.\n" +
"그리고 키워드들은 반드시 들어가야 하고 빠지면 안돼\n\n" +
"## 입력 데이터\n" +
"- 상황: %s\n" +
"- 키워드들: %s\n\n";
Expand Down

0 comments on commit 498aa9f

Please sign in to comment.