When using the
llama_index.llms import OpenAI
how to set the log to "debug"?
For getting openai logs seen suggested
openai.log = "debug"
, but doesn't work for my setup.
Here's a snippet:
...
from llama_index.llms import OpenAI
import openai
openai.log = "debug"
app = FastAPI()
loader = SitemapReader()
llm = OpenAI(temperature=0.1, model="gpt-3.5-turbo")
service_context = ServiceContext.from_defaults(llm=llm)
Followed the documentation, from most basics simply set an environment variable for OPEN AI api etc. Happens that I extended my setup to include OpenAI, as I wanted to modify the model, otherwise I wouldn't need it.
So, when someone says to
openai.log = "debug"
, I wonder what they mean in llama index context or setup?