GithubHelp home page GithubHelp logo

Comments (11)

fdciabdul avatar fdciabdul commented on July 1, 2024 1

karna ternary methode itu hanya support di nodejs v16 keatas ,

default install nodejs pada saat pertama install di ubuntu itu versi 12 , jadi harus di upgrade versi nodejs nya

sudo npm install -g n
n install lts
hash -r

from wa-openai.

Slavecode avatar Slavecode commented on July 1, 2024

Vps azure?

from wa-openai.

fskhri avatar fskhri commented on July 1, 2024

localhost

from wa-openai.

fskhri avatar fskhri commented on July 1, 2024

im using linux LTS

image

sebelum nya normal, tapi setelah saya ganti device hp malah jadi kayak gitu

from wa-openai.

Sansekai avatar Sansekai commented on July 1, 2024

Byk juga yg ngalamin ini tapi saya blm nemu solusinya😁.

Mungkin teman-teman yang lain bisa bantu

from wa-openai.

harshitethic avatar harshitethic commented on July 1, 2024

It looks like there is a problem with the JavaScript syntax on line 226 of your index.js file.
It seems that your code is trying to use this operator, but it is not supported in the version of JavaScript that you are using. To fix the error, you will need to either update to a newer version of JavaScript that supports the optional chaining operator, or use a different technique to access the property that you need.

let reason;
if (lastDisconnect && lastDisconnect.error) {
reason = new Boom(lastDisconnect.error).output.statusCode;
}

This code uses an if statement to check if the lastDisconnect and lastDisconnect.error objects exist before trying to access their properties. #fix

from wa-openai.

wahyuda110 avatar wahyuda110 commented on July 1, 2024

sama bang cara solved nya gmna ya??

from wa-openai.

wahyuda110 avatar wahyuda110 commented on July 1, 2024

tetap error bang udh hapus repo install ulang lgi
image

from wa-openai.

wahyuda110 avatar wahyuda110 commented on July 1, 2024

Solved gan , harus pake node versi 16 untuk solved di vps/c9 gunakan command ini

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
source ~/.bashrc
nvm install 16
nvm use 16
node -v

from wa-openai.

YogaSetiawanXsaintz avatar YogaSetiawanXsaintz commented on July 1, 2024

eror:openai.createChatCompletion is not a function

plase solution please...

from wa-openai.

fskhri avatar fskhri commented on July 1, 2024

You need to update the OpenAI package

npm update openai

from wa-openai.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.