mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
added comment
This commit is contained in:
parent
0aea8ef0c2
commit
39facf40a0
@ -108,6 +108,8 @@ export const POST = createSmartRouteHandler({
|
||||
const startedAt = performance.now();
|
||||
|
||||
const isAnthropic = model.modelId.startsWith("anthropic/");
|
||||
// Can be optimized: only opt into prompt caching for routes that are hit
|
||||
// frequently enough to amortize the write.
|
||||
const systemMessage: ModelMessage = {
|
||||
role: "system",
|
||||
content: systemPrompt,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user