File size: 270 Bytes
7ba5af2
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
# config.py
from langchain_anthropic import ChatAnthropic

# Get the API key
API_KEY = os.getenv('CLAUDE_API_KEY')

# Initialize the Anthropic Chat Model
llm = ChatAnthropic(model="claude-3-5-sonnet-20240620", temperature=0.1, max_tokens=8192, anthropic_api_key=API_KEY)