Spaces:
Runtime error
Runtime error
File size: 224 Bytes
9db894e |
1 2 3 4 5 6 |
from typing import Callable
def load_llm(temperature: float = 0.0, model: str = 'gpt-3.5-turbo') -> Callable:
from langchain.chat_models import ChatOpenAI
llm = ChatOpenAI(temperature=temperature, model=model)
return llm |