Skip to content

Commit

Permalink
Refctoring chat domain unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
sashirestela committed Dec 20, 2024
1 parent c7dcb58 commit 5b5ed48
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@
import io.github.sashirestela.openai.domain.DomainTestingHelper;
import io.github.sashirestela.openai.domain.DomainTestingHelper.MockForType;
import io.github.sashirestela.openai.domain.chat.ChatMessage.AssistantMessage;
import io.github.sashirestela.openai.domain.chat.ChatMessage.DeveloperMessage;
import io.github.sashirestela.openai.domain.chat.ChatMessage.SystemMessage;
import io.github.sashirestela.openai.domain.chat.ChatMessage.ToolMessage;
import io.github.sashirestela.openai.domain.chat.ChatMessage.UserMessage;
import io.github.sashirestela.openai.domain.chat.ChatRequest.Audio;
import io.github.sashirestela.openai.domain.chat.ChatRequest.Modality;
import io.github.sashirestela.openai.domain.chat.ChatRequest.ReasoningEffort;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;

Expand Down Expand Up @@ -66,7 +68,9 @@ static void setup() {
chatTextRequest = ChatRequest.builder()
.model("gpt-4-1106-preview")
.message(SystemMessage.of("You are an expert in Mathematics", "tutor"))
.message(DeveloperMessage.of("You are an expert in Mathematics"))
.message(UserMessage.of("Tell me the Pitagoras theorem in less than 50 words.", "student"))
.reasoningEffort(ReasoningEffort.LOW)
.temperature(0.2)
.maxCompletionTokens(500)
.topP(1.0)
Expand Down

0 comments on commit 5b5ed48

Please sign in to comment.