Wappler Version: 7.3.8
OS: macOS (MacBook Pro 14")
Environment: Docker target
AI Provider: OpenAI
Issue description
When trying to use the new OpenAI project-based API keys (which start with sk-proj-...) in Wappler’s AI Manager, the assistant fails to connect and returns the following error:
429 You exceeded your current quota, please check your plan and billing details.
However, my OpenAI account is active, has available quota, and the same API key works perfectly when tested via curl or Postman.
Steps to reproduce
-
Create a new API key (default “project” key – format:
sk-proj-...) -
Copy and paste it in Wappler → Preferences → AI → OpenAI API Key
-
Try to run any prompt in the AI Manager
Expected behavior
Wappler should recognize and use the sk-proj-... keys as valid OpenAI credentials, just like older sk-... keys.
Actual behavior
The AI Assistant fails to respond and throws the 429 quota error, indicating the key is rejected or not interpreted correctly by Wappler.
Additional notes
-
OpenAI recently migrated all user keys to the new “Project” system, and newly created keys now start with
sk-proj-.... -
These keys are valid and work directly with OpenAI’s API (tested via
curl). -
The issue seems to be that Wappler’s AI integration still expects the legacy format (
sk-...).
Request
Please update Wappler’s OpenAI integration to support the new Project API keys (sk-proj-...), as OpenAI no longer issues the old key format.
Tested Models:
-
gpt-3.5-turbo -
gpt-4o -
gpt-4o-mini
(All fail with the same error)
Thanks a lot for all your amazing work — Wappler’s AI Assistant looks great, and this update will ensure it stays compatible with OpenAI’s new key system.