#api usage JavaScript errors

1 messages · Page 1 of 1 (latest)

still knoll
#

I need some help with using open ai api for JavaScript. Whenever I try to use any function and check the error on google console ( I am running my code through netlify for a website) says

main.bed577a1.js:2 Error testing OpenAI connection: TypeError: jp.complete is not a function
at main.bed577a1.js:2:506803
at f (main.bed577a1.js:2:243634)
at Generator.<anonymous> (main.bed577a1.js:2:244971)
at Generator.next (main.bed577a1.js:2:243997)
at ra (main.bed577a1.js:2:249625)
at o (main.bed577a1.js:2:249829)
at main.bed577a1.js:2:249890
at new Promise (<anonymous>)
at main.bed577a1.js:2:249769
at main.bed577a1.js:2:507145

This error occurs for any open ai function I try (instead of jp.complete it says what jp.(method I am trying to use) my code does not contain any mention of Jp so I’m wondering how I can fix this. I’m on a mac running vscode and running my code through netlify)

normal walrus
#

Check if you're using the latest version of the package if you're using https://www.npmjs.com/package/openai