From dff0e3ee6c21baaa31a1e96780ea7a299cdaff8e Mon Sep 17 00:00:00 2001 From: Andrew Kent Date: Mon, 22 Sep 2025 10:23:47 -0600 Subject: [PATCH] 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 --- .../dev/braintrust/examples/OpenAIInstrumentationExample.java | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/src/main/java/dev/braintrust/examples/OpenAIInstrumentationExample.java b/examples/src/main/java/dev/braintrust/examples/OpenAIInstrumentationExample.java index 46c7ec2..1c89b90 100644 --- a/examples/src/main/java/dev/braintrust/examples/OpenAIInstrumentationExample.java +++ b/examples/src/main/java/dev/braintrust/examples/OpenAIInstrumentationExample.java @@ -28,7 +28,6 @@ public static void main(String[] args) throws Exception { .model(ChatModel.GPT_4O_MINI) .addSystemMessage("You are a helpful assistant") .addUserMessage("What is the capital of France?") - .maxTokens(50L) .temperature(0.0) .build(); var response = openAIClient.chat().completions().create(request);