iamshaunjp / iamshaunjp/openAI-basics
openai error
- Dominant language
- No language data
- Stars
- 34
- Forks
- 20
- PR merge metrics
- No merged PRs in 30d
Description
I have been following the video but i get an error. I thought it was me so i went to git hub and used the code provided I get the same error. I wonder if it is the openai version the video uses 3.2.1and the one I have is 3.3.0.... here is the error node app
Youtube Video Title:
Complete HTML Tutorial
E:\Erich\Projects\AI projects\Projects\Open-AI\controllers\openaiController.js:4
const description = await openai.createChatCompletion({
^
TypeError: openai.createChatCompletion is not a function
at generateMeta (E:\Erich\Projects\AI projects\Projects\Open-AI\controllers\openaiController.js:4:36)
at E:\Erich\Projects\AI projects\Projects\Open-AI\app.js:11:51
at [_onLine] [as _onLine] (node:internal/readline/interface:423:7)
at [_line] [as _line] (node:internal/readline/interface:886:18)
at [_ttyWrite] [as _ttyWrite] (node:internal/readline/interface:1264:22)
at ReadStream.onkeypress (node:internal/readline/interface:273:20)
at ReadStream.emit (node:events:513:28)
at emitKeys (node:internal/readline/utils:357:14)
at emitKeys.next ()
at ReadStream.onData (node:internal/readline/emitKeypressEvents:64:36)
Any help is appreciated
Cheers
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.