-
Notifications
You must be signed in to change notification settings - Fork 19.2k
Closed as not planned
Labels
bugRelated to a bug, vulnerability, unexpected error with an existing featureRelated to a bug, vulnerability, unexpected error with an existing feature
Description
System Info
v0.0.298
Who can help?
Information
- The official example notebooks/scripts
- My own modified scripts
Related Components
- LLMs/Chat Models
- Embedding Models
- Prompts / Prompt Templates / Prompt Selectors
- Output Parsers
- Document Loaders
- Vector Stores / Retrievers
- Memory
- Agents / Agent Executors
- Tools / Toolkits
- Chains
- Callbacks/Tracing
- Async
Reproduction
Create a ChatAnthropic
class instance, note that both _identifying_params
and dict()
do not output the proper attributes, even though _default_params
does.
I'd make a PR to fix this, but upon examining the code, it's not clear to me what is causing the bug.
from langchain.chat_models import ChatAnthropic
chat = ChatAnthropic()
chat._default_params
{'max_tokens_to_sample': 256, 'model': 'claude-2'}
chat._identifying_params
{}
chat.dict()
{'_type': 'anthropic-chat'}
Expected behavior
_identifying_params
and dict()
should output the correct params.
Metadata
Metadata
Assignees
Labels
bugRelated to a bug, vulnerability, unexpected error with an existing featureRelated to a bug, vulnerability, unexpected error with an existing feature