My ai key shows up when using

Hello,
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?
Thanks!

probably you hardcoded it.

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

Thanks,
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.
Thanks!

1 Like

You welcome!