惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Visual Studio Blog
A
About on SuperTechFans
J
Java Code Geeks
G
Google Developers Blog
L
LangChain Blog
小众软件
小众软件
宝玉的分享
宝玉的分享
云风的 BLOG
云风的 BLOG
P
Proofpoint News Feed
博客园 - 【当耐特】
IT之家
IT之家
F
Fortinet All Blogs
aimingoo的专栏
aimingoo的专栏
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
阮一峰的网络日志
阮一峰的网络日志
V
V2EX
博客园 - Franky
博客园_首页
雷峰网
雷峰网
Microsoft Security Blog
Microsoft Security Blog
Vercel News
Vercel News
B
Blog
月光博客
月光博客
酷 壳 – CoolShell
酷 壳 – CoolShell

How does Prompt Caching work?

How does Prompt Caching work? How does Prompt Caching work? How does Prompt Caching work? How does Prompt Caching work? How does Prompt Caching work? How does Prompt Caching work? How does Prompt Caching work? How does Prompt Caching work?
How does Prompt Caching work?
svelidanda · 2024-10-28 · via How does Prompt Caching work?

Thanks for the replies, it is a bit clear now. Regarding the token sequence priority in gpt-4o-mini: Is prefix of input tokens counted in same order System prompts → Tools → User messages ? Looks like there are 2 separate caches being used one for system prompts and one for tools? when changing system or tools prompts in subsequent requests, getting cached token count as zero if there are less than 1024 tokens and 1024 + incremented by 128 if there are more than 1024 tokens.