OpenAI invalid api key #3600
Unanswered
Code-isseur
asked this question in
Q&A
Replies: 2 comments
-
|
invalid API key format I should say |
Beta Was this translation helpful? Give feedback.
0 replies
-
1. Check Your .env FileOpen # ✅ CORRECT
OPENAI_API_KEY=sk-abc123def456...
# ❌ WRONG
OPENAI_API_KEY="sk-abc123..."
OPENAI_API_KEY='sk-abc123...'
OPENAI_API_KEY= sk-abc123...2. Restart Completely# Stop all instances
pkill -f "eliza"
# Restart
pnpm start --characters="path/to/character.json"3. Verify Character ConfigCheck your character JSON file - remove or empty any {
"settings": {
"secrets": {
// Remove this or leave empty - let .env handle it
}
},
"modelProvider": "openai"
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I’m getting invalid api key when trying to use OpenAI as the model. It was working, but after switching it to heurist as the model and then back to OpenAI, can’t get past the error
Beta Was this translation helpful? Give feedback.
All reactions