Log in
Log into community
Welcome to Portkey Forum
New post
View all posts
Related posts
Was this helpful?
😞
😐
😃
Powered by
Hall
Active
Updated yesterday
0
Follow
Caching and cache misses for requests with new seeds
Caching and cache misses for requests with new seeds
Active
0
Follow
A
Arya
3 days ago
·
if I am sending a new seed everytime would it cause my request miss cache ? trying to figure out why cache miss is happening for the same request.
s
A
6 comments
Share
Open in Discord
s
sega
edited 3 days ago
cache is on headers + body, if you change anything in that it'll miss
there's semantic cache as well is that what you're looking for?
https://portkey.ai/docs/product/ai-gateway/cache-simple-and-semantic#semantic-cache
A
Arya
2 days ago
Semantic cache does not work for use since we are processing tabels, and change in a single value needs to retrigger calculation.
s
sega
2 days ago
then what type of cache are you talking about if your body is not the same with every request 🥲
s
sega
2 days ago
If you're thinking about provider specific caching like openai caching, that is provider specific, for example openai caches any context which is > 1024 tokens
s
sega
2 days ago
for anthropic you have to send cache key in the specific message content item
A
Arya
yesterday
I just removed the seed parameter to fix it
Add a reply
Sign up and join the conversation on Discord
Join on Discord