wishwakankanamg commited on
Commit
bd6ff84
·
1 Parent(s): 5992e45
Files changed (2) hide show
  1. __pycache__/graph.cpython-310.pyc +0 -0
  2. graph.py +10 -1
__pycache__/graph.cpython-310.pyc ADDED
Binary file (3.82 kB). View file
 
graph.py CHANGED
@@ -13,6 +13,8 @@ from langgraph.graph import StateGraph, END, add_messages
13
  from langchain_community.tools import TavilySearchResults
14
  from pydantic import BaseModel, Field
15
  from trafilatura import extract
 
 
16
 
17
  logger = logging.getLogger(__name__)
18
  ASSISTANT_SYSTEM_PROMPT_BASE = """"""
@@ -45,7 +47,14 @@ if search_enabled:
45
  else:
46
  print("TAVILY_API_KEY environment variable not found. Websearch disabled")
47
 
48
- weak_model = ChatOpenAI(model="gpt-4o-mini", tags=["assistant"])
 
 
 
 
 
 
 
49
  model = weak_model
50
  assistant_model = weak_model
51
 
 
13
  from langchain_community.tools import TavilySearchResults
14
  from pydantic import BaseModel, Field
15
  from trafilatura import extract
16
+ from langchain_anthropic import ChatAnthropic
17
+
18
 
19
  logger = logging.getLogger(__name__)
20
  ASSISTANT_SYSTEM_PROMPT_BASE = """"""
 
47
  else:
48
  print("TAVILY_API_KEY environment variable not found. Websearch disabled")
49
 
50
+ weak_model = ChatAnthropic(
51
+ model="claude-3-5-sonnet-20240620",
52
+ temperature=0,
53
+ max_tokens=1024,
54
+ timeout=None,
55
+ max_retries=2,
56
+ # other params...
57
+ )
58
  model = weak_model
59
  assistant_model = weak_model
60