Closed Tobe2d closed 2 months ago
This is optional if you have ollama but if you want to use openai or anthropic APIs , you have to set your system environment variables with the API key.
For Windows:
For Linux:
nano ~/.bashrc
YOUR_ANTHROPIC_API_KEY
and YOUR_OPENAI_API_KEY
with your actual API keys:
export ANTHROPIC_API_KEY="YOUR_ANTHROPIC_API_KEY"
export OPENAI_API_KEY="YOUR_OPENAI_API_KEY"
Ctrl+X
, then Y
, and finally Enter
.source ~/.bashrc
After setting the environment variables, restart ComfyUI the API keys should be accessible then
I woud like to know where to Set enviromnet variables for "ANTHROPIC_API_KEY" & "OPENAI_API_KEY"
I am getting this at the end of the log when I start comfyui