Spaces:
Sleeping
Sleeping
File size: 377 Bytes
0cf3992 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
from dotenv import load_dotenv
import streamlit as st
from langchain_groq import ChatGroq
load_dotenv(override=True)
# Initialize clients
@st.cache_resource
def init_clients(groq_api_key):
"""Initialize API clients"""
llm = ChatGroq(
temperature=0.9,
model="openai/gpt-oss-120b",
groq_api_key=groq_api_key
)
return llm
|