linkedin-post-generator / llm_helper.py
DrishtiSharma's picture
Upload 6 files
765a4ee verified
raw
history blame
324 Bytes
from langchain_groq import ChatGroq
import os
from dotenv import load_dotenv
load_dotenv()
llm = ChatGroq(groq_api_key=os.getenv("GROQ_API_KEY"), model_name="llama-3.2-90b-text-preview")
if __name__ == "__main__":
response = llm.invoke("Two most important ingradient in samosa are ")
print(response.content)