From f6a50650933cd9ff1ac49394980be593989aeaf8 Mon Sep 17 00:00:00 2001 From: Brace Sproul Date: Mon, 28 Jul 2025 18:27:12 -0700 Subject: [PATCH] chore: Bump max tokens to 100k (#581) --- apps/open-swe/src/__tests__/tokens.test.ts | 4 ++-- apps/open-swe/src/utils/tokens.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/open-swe/src/__tests__/tokens.test.ts b/apps/open-swe/src/__tests__/tokens.test.ts index 4239d3e6..9a5cd860 100644 --- a/apps/open-swe/src/__tests__/tokens.test.ts +++ b/apps/open-swe/src/__tests__/tokens.test.ts @@ -633,7 +633,7 @@ describe("getMessagesSinceLastSummary", () => { }); describe("MAX_INTERNAL_TOKENS constant", () => { - it("should be defined as 60,000", async () => { - expect(MAX_INTERNAL_TOKENS).toBe(60_000); + it("should be defined as 100,000", async () => { + expect(MAX_INTERNAL_TOKENS).toBe(100_000); }); }); diff --git a/apps/open-swe/src/utils/tokens.ts b/apps/open-swe/src/utils/tokens.ts index 5a84a9f8..c8dd7859 100644 --- a/apps/open-swe/src/utils/tokens.ts +++ b/apps/open-swe/src/utils/tokens.ts @@ -7,8 +7,8 @@ import { import { getMessageContentString } from "@open-swe/shared/messages"; import { traceable } from "langsmith/traceable"; -// After 60k tokens, summarize the conversation history. -export const MAX_INTERNAL_TOKENS = 60_000; +// After 100k tokens, summarize the conversation history. +export const MAX_INTERNAL_TOKENS = 100_000; export function calculateConversationHistoryTokenCount( messages: BaseMessage[],