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 @@ -23,8 +23,6 @@ public class RAGAnswerCreateService {
- 아래 제공된 데이터를 기반으로 질문에 대해 매우 길고 정확하게 설명해주세요.
- 만약 참고 데이터가 없다면, 교육 도메인의 일반적인 지식을 바탕으로 충실하게 답변해주세요.
- 반드시 한글로만 응답하고, 인사말이나 불필요한 문장은 생략한 대답만 반환하세요.
- 500자 내외로 설명해주세요.
- /, \n 등의 개행문자는 사용하지 말아주세요.
""";

// 기존 채팅 이력을 기반으로 GPT 응답 생성
Expand All @@ -38,9 +36,9 @@ public String chat(List<Chatting> chatHistory, String question) {

// DTO 기반 요청 생성
ChatCompletionRequestDto request = ChatCompletionRequestDto.builder()
.model("o1-preview")
.model("gpt-4-0125-preview")
.temperature(0.3)
.maxTokens(1500)
.maxTokens(3500)
.messages(messages)
.build();

Expand Down Expand Up @@ -79,9 +77,9 @@ public String chatWithContext(List<Chatting> chatHistory, String finalPrompt) {
messages.add(new ChatMessage("user", finalPrompt));

ChatCompletionRequestDto request = ChatCompletionRequestDto.builder()
.model("o1-preview")
.model("gpt-4-0125-preview")
.temperature(0.3)
.maxTokens(1500)
.maxTokens(3500)
.messages(messages)
.build();

Expand Down