Skip to content

Commit 8f63178

Browse files
committed
remove max tokens from experiment
The experiment asks a very simple question so the default LLM output won't be huge. But there's a risk of users altering the question without noticing the token limit
1 parent 514fef0 commit 8f63178

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

examples/src/main/java/dev/braintrust/examples/OpenAIInstrumentationExample.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ public static void main(String[] args) throws Exception {
2828
.model(ChatModel.GPT_4O_MINI)
2929
.addSystemMessage("You are a helpful assistant")
3030
.addUserMessage("What is the capital of France?")
31-
.maxTokens(50L)
3231
.temperature(0.0)
3332
.build();
3433
var response = openAIClient.chat().completions().create(request);

0 commit comments

Comments
 (0)