Plugins cannot process OpenAI API key #1646
Answered
by
danny-avila
sirlaurie
asked this question in
Troubleshooting
-
Beta Was this translation helpful? Give feedback.
Answered by
danny-avila
Jan 26, 2024
Replies: 2 comments 9 replies
-
Make sure when you put your API key you do not include quotation marks |
Beta Was this translation helpful? Give feedback.
5 replies
-
error log (error-2024-01-26.log) {"level":"error","message":"[handleAbortError] AI response error; aborting request: Unexpected token 's', \"sk-NY9Cgvb\"... is not valid JSON","stack":"SyntaxError: Unexpected token 's', \"sk-NY9Cgvb\"... is not valid JSON\n at JSON.parse (<anonymous>)\n at initializeClient (/home/lori/LibreChat/api/server/services/Endpoints/gptPlugins/initializeClient.js:64:49)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /home/lori/LibreChat/api/server/routes/ask/gptPlugins.js:160:24"} |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I believe you might have
PLUGINS_USE_AZURE
enabled as you are hitting a condition only when that variable is enabled, or the word "azure" is detected in your API key. Is either of this the case? I would never expect the latter but not impossible