Open chtheiss opened 5 months ago
Let me see
Upgrade langchai_core and try again.
@liugddx I've just checked after upgrading langchain_core
and langchain-anthropic
and still facing same issue.
After changing the model from Haiku to Opus, it is still reading from cache.
My env:
langchain==0.1.13
langchain-anthropic==0.1.8
langchain-community==0.0.29
langchain-core==0.1.42
langchain-google-genai==0.0.8
langchain-openai==0.1.1
langchain-text-splitters==0.0.1
langsmith==0.1.31
Hi @chtheiss @Alchemication ! I am facing the same issue, have you been able to find a fix ? Many thanks !
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
No response
Description
The caching is only dependent on the messages and not on the parameters given to the
ChatAnthropic
class.This results in langchain hitting the cache instead of sending a new requests to the API even so parameters like
temperature
,max_tokens
or even themodel
have been changed.I.e. when the first request containg just the message
"Hello World"
was send to"claude-3-sonnet-20240229"
and one changes the model to"claude-3-opus-20240229"
afterward langchain will still fetch the response for from the first request.System Info
System Information
Package Information
Packages not installed (Not Necessarily a Problem)
The following packages were not found: