Skip to content

Commit f78588d

Browse files
Update src/api/providers/codex.ts
Co-authored-by: roomote[bot] <219738659+roomote[bot]@users.noreply.github.com>
1 parent c1796b9 commit f78588d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/api/providers/codex.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ import { getModelParams } from "../transform/model-params"
2323
import { ApiStream, type ApiStreamChunk } from "../transform/stream"
2424
import { OpenAiNativeHandler } from "./openai-native"
2525

26+
// Keep last 12 messages for context - balances between providing sufficient
27+
// conversation history and avoiding token limit issues
2628
const HISTORY_CONTEXT_WINDOW = 12
2729
const HISTORY_REPLAY_LABEL = "Conversation so far:\n"
2830

0 commit comments

Comments
 (0)