Behavior of UI Sketcher in Cursor

I installed UI Sketcher on cursor, saved the Opne AI API key, and started Sketcher, and I get the following error. Please let me know why and how to fix it.
“UI Sketcher:Unable to create completion due to issues with Open AI API”

Hmm, this doesn’t sound Cursor specific. Does the same setup work in normal VSCode?