We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1796b9 commit f78588dCopy full SHA for f78588d
src/api/providers/codex.ts
@@ -23,6 +23,8 @@ import { getModelParams } from "../transform/model-params"
23
import { ApiStream, type ApiStreamChunk } from "../transform/stream"
24
import { OpenAiNativeHandler } from "./openai-native"
25
26
+// Keep last 12 messages for context - balances between providing sufficient
27
+// conversation history and avoiding token limit issues
28
const HISTORY_CONTEXT_WINDOW = 12
29
const HISTORY_REPLAY_LABEL = "Conversation so far:\n"
30
0 commit comments