chore: Bump max tokens to 100k (#581)

This commit is contained in:
Brace Sproul 2025-07-28 18:27:12 -07:00 • committed by GitHub
parent 840a7fc852
commit f6a5065093
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -633,7 +633,7 @@ describe("getMessagesSinceLastSummary", () => {
}); });
describe("MAX_INTERNAL_TOKENS constant", () => { describe("MAX_INTERNAL_TOKENS constant", () => {
it("should be defined as 60,000", async () => { it("should be defined as 100,000", async () => {
expect(MAX_INTERNAL_TOKENS).toBe(60_000); expect(MAX_INTERNAL_TOKENS).toBe(100_000);
}); });
}); });

View file

@ -7,8 +7,8 @@ import {
import { getMessageContentString } from "@open-swe/shared/messages"; import { getMessageContentString } from "@open-swe/shared/messages";
import { traceable } from "langsmith/traceable"; import { traceable } from "langsmith/traceable";
// After 60k tokens, summarize the conversation history. // After 100k tokens, summarize the conversation history.
export const MAX_INTERNAL_TOKENS = 60_000; export const MAX_INTERNAL_TOKENS = 100_000;
export function calculateConversationHistoryTokenCount( export function calculateConversationHistoryTokenCount(
messages: BaseMessage[], messages: BaseMessage[],