from langchain.chat_models import ChatOpenAI from llama_index import LLMPredictor, ServiceContext service_context = ServiceContext.from_defaults(llm_predictor=LLMPredictor(llm=ChatOpenAI(model_name="gpt-3.5-turbo", temperature=0))) index = load_index_from_storage(storage_context, service_context=service_context)
from llama_index.llms import OpenAI
llm = OpenAI(temperature=0, model="text-davinci-002")
service_context = ServiceContext.from_defaults(llm=llm)
File "main.py", line 5, in <module>
from llama_index.llms import OpenAI
ModuleNotFoundError: No module named 'llama_index.llms'
@Logan Mfrom langchain.llms import OpenAI