Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions apps/slack-agent/src/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@ function resolveModel(): string {
: "anthropic/claude-sonnet-5";
}

// The breakpoint caches the tool definitions plus the system prompt; without
// it Anthropic caches nothing.
const PROMPT_CACHE_OPTIONS = {
openrouter: { cacheControl: { type: "ephemeral" } },
};

const TODAY = new Date().toISOString().slice(0, 10);

// Anthropic only caches prompt prefixes of at least 1024 tokens (Sonnet 5),
Expand Down Expand Up @@ -67,7 +61,6 @@ export function streamAnswer({
instructions: {
role: "system",
content: SYSTEM_PROMPT,
providerOptions: PROMPT_CACHE_OPTIONS,
},
messages,
abortSignal,
Expand Down
Loading