Skip to content
Merged
Show file tree
Hide file tree
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 @@ -299,7 +299,7 @@ private List<String> analyzeCocktailRequest(String userQuestion) {
.user(analysisPrompt)
.options(OpenAiChatOptions.builder()
.withTemperature(0.7)
.withMaxTokens(150)
.withMaxTokens(400)
.build())
.call()
.content();
Expand Down Expand Up @@ -345,7 +345,7 @@ private String generateRecommendationMessage(String userQuestion, List<CocktailS
.user(messagePrompt)
.options(OpenAiChatOptions.builder()
.withTemperature(0.8)
.withMaxTokens(100)
.withMaxTokens(150)
.build())
.call()
.content();
Expand Down Expand Up @@ -610,11 +610,11 @@ private OpenAiChatOptions getOptionsForMessageType(InternalMessageType type) {
.build();
case RECOMMENDATION -> OpenAiChatOptions.builder()
.withTemperature(0.9)
.withMaxTokens(250)
.withMaxTokens(400)
.build();
case QUESTION -> OpenAiChatOptions.builder()
.withTemperature(0.7)
.withMaxTokens(200)
.withMaxTokens(maxTokens)
.build();
default -> OpenAiChatOptions.builder()
.withTemperature(temperature)
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ spring:
options:
model: "gemini-2.0-flash-exp"
temperature: 0.8
max-tokens: 800
max-tokens: 1000
completions-path: "/chat/completions"
batch:
job:
Expand Down