ai-codelens / utils_llm.py
nnsohamnn's picture
feat: upgrade to Agentic RAG - add ReAct agent loop, planner, tool system, and bug detection mode
9b4bb17
raw
history blame contribute delete
357 Bytes
from langchain_openai import ChatOpenAI
import os
def get_llm(openai_api_key: str, temperature: float = 0):
"""Returns the LongCat-Flash-Lite LLM instance."""
return ChatOpenAI(
model_name="LongCat-Flash-Lite",
base_url="https://api.longcat.chat/openai",
temperature=temperature,
openai_api_key=openai_api_key
)