NithikaShree commited on
Commit
ae7b495
·
verified ·
1 Parent(s): 26fdaba

Update llm.py

Browse files
Files changed (1) hide show
  1. llm.py +8 -4
llm.py CHANGED
@@ -1,9 +1,13 @@
 
1
  from langchain_cerebras import ChatCerebras
2
- from dotenv import load_dotenv
3
 
4
- load_dotenv()
 
 
 
5
 
6
  llm = ChatCerebras(
7
- model="gpt-oss-120b",
8
- temperature=0.7
 
9
  )
 
1
+ import os
2
  from langchain_cerebras import ChatCerebras
 
3
 
4
+ CEREBRAS_API_KEY = os.environ.get("CEREBRAS_API_KEY")
5
+
6
+ if not CEREBRAS_API_KEY:
7
+ raise ValueError("CEREBRAS_API_KEY not found")
8
 
9
  llm = ChatCerebras(
10
+ model="llama3.1-8b",
11
+ temperature=0.7,
12
+ api_key=CEREBRAS_API_KEY
13
  )