from llama_index.core import Settings from llama_index.llms.openai import OpenAI Settings.llm = OpenAI()
from llama_index.core import Settings from llama_index.llms.openai import OpenAI Settings.llm = OpenAI(organization="orgID",...) # if not this then from llama_index.core import Settings from llama_index.llms.openai import OpenAI import openai openai.organization="org ID" Settings.llm = OpenAI()