My ai key shows up when using

Can someone explain why/how my API key is showing up in my note book response while experimenting with LLM Application Development with prompts, etc?

probably you hardcoded it.

A more security approach is to use it as a envirioment variable

I thought that I was using the environment variable approach,i.e .env?
when I run this code:Chat = ChatOpenAI(temperature=0.0, model=llm_model)
chat, the response returns my API Key along with some other information.

1 Like

You welcome!