Spaces:
Sleeping
Sleeping
| from langchain.chat_models import ChatOpenAI | |
| from langchain.prompts import PromptTemplate | |
| from langchain.chains import LLMChain | |
| from prompts import PROMPT_TEMPLATE | |
| def llm_node(): | |
| llm = ChatOpenAI(model="gpt-3.5-turbo", temperature=0) | |
| prompt = PromptTemplate.from_template(PROMPT_TEMPLATE) | |
| chain = LLMChain(llm=llm, prompt=prompt) | |
| return chain | |