File size: 309 Bytes
256e13c
 
 
0ac93ae
 
 
 
256e13c
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from langchain_groq import ChatGroq
import os

llm = ChatGroq(
    api_key=os.environ["GROQ_API_KEY"],  # This will raise an error if unset
    model_name="llama3-70b-8192"
)

if __name__ == "__main__":
    response = llm.invoke("Two most important ingredient in samosa are ")
    print(response.content)