Skip to content

Commit

Permalink
increase default max tokens to 10240 since token prices decreased
Browse files Browse the repository at this point in the history
  • Loading branch information
stoerr committed Jan 5, 2025
1 parent 867df35 commit 90ac39e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class OpenAIChatBuilderImpl implements AIChatBuilder {
*/
public static final String ANTHROPIC_DEFAULT_VERSION = "2023-06-01";

public static final int DEFAULT_MAX_TOKENS = 2048;
public static final int DEFAULT_MAX_TOKENS = 10240;

protected static final Gson gson = new GsonBuilder().setPrettyPrinting().disableHtmlEscaping().create();
public static final String ROLE_SYSTEM = "system";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public static void main(String[] args) throws IOException, InterruptedException
" }\n" +
" ],\n" +
" \"temperature\": 0.0,\n" +
" \"max_completion_tokens\": 2048\n" +
" \"max_completion_tokens\": 10240\n" +
"}";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create(url))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Response to:
}
],
"temperature": 0.0,
"max_completion_tokens": 2048
"max_completion_tokens": 10240
}
<!-- end of thereplacedpart AIGenVersion() -->
this should be left alone at the end.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ Response to:
}
],
"temperature": 0.0,
"max_completion_tokens": 2048
"max_completion_tokens": 10240
}
2 changes: 1 addition & 1 deletion examples/infileprompt/copydata.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ AIGenPromptEnd(openaijson) -->
}
],
"temperature": 0.0,
"max_completion_tokens": 2048
"max_completion_tokens": 10240
}

0 comments on commit 90ac39e

Please sign in to comment.