Spaces:
Sleeping
Sleeping
| 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 | |
| ) | |