Spaces:
Sleeping
Sleeping
File size: 397 Bytes
419e7a3 f688bb6 419e7a3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
from langchain_groq import ChatGroq
import os
from dotenv import load_dotenv
# Load environment variables
load_dotenv()
os.getenv("GROQ_API_KEY")
def get_agent_groq(temperature=0.7):
# Load the Groq model
chat = ChatGroq(
temperature=temperature,
model="llama3-70b-8192", #define model available on Groq
api_key=os.getenv("GROQ_API_KEY")
)
return chat
|