#I type any input, the AI is giving me the same answer all the time (Please view screenshot).

10 messages · Page 1 of 1 (latest)

proud sky
#

In the latest video on JavaScript Mastery Channel. "Build and Deploy Your Own ChatGPT AI App in JavaScript" . I am having this issue shown in the screenshot ... whenever I type anything, like any question for AI to answer only this output is shown. Please help me resolve it!!!

pallid island
junior pathBOT
#
To help us help you, when asking for help, tell us the following:
💠💠💠
  • Expectations! What did you expect your code to do? What did it actually do?
  • Errors! If your code produced an error, paste the error message for us to see!
  • Code! We can't help you if you don't show us the code that you're having trouble with. No screenshots -- use code blocks instead please (!!help.codeblocks).
  • Libraries! If you're using a library, tell us the library name.
pallid island
#

Is this code snippet something you recognize?

proud sky
#

Expectations : When I type "Hello" or anything else, The Output should be, "Hi! there, How can I help you" in the AI text box but it gives some weird code or something as shown in screenshot.
.
Errors : There are no errors in the client as well as server side terminal window !! Everything is working perfect
.
Code : I am sharing a rar file (open_ai_codex.rar) of the code which I wrote please check !!
.
Libraries : Nothing rather than as instructed in the ChatGPT video (https://youtu.be/2FeymQoKvrk)
.
Personal Note : I really like your work and I am currently in need of job urgently, projects like this can give me an upperhand giving me a JOB. Thank You.

With an elegant user interface that resembles the ChatGPT app, communication with advanced GPT3 model API, and most importantly, the ability to ask the AI for help regarding JavaScript, React, or any other programming language, giving it code and translating it to another programming language, and much more, this CodeGPT is the best AI-based web...

▶ Play video
proud sky
#

') {
if (typeof(data.error) != 'undefined') {
if (data.error != '') {
alert(data.error);
} else {
alert('Something went wrong');
}
} else {
alert('Something went wrong');
}
} else {

                    // Reload datatable

                    table.ajax.reload();

                    // Reset Form

                    $('#form-edit')[0].reset();

                    // Close modal

                    $("#editModal").modal('hide');

                    // Show success message

                    toastr.success(data.success);

                }
            }, error: function(data) {

                // Reset Form

                $('#form-edit')[0].reset();

                // Close modal

                $("#editModal").modal('hide');

                // Show error message

                toastr.error(data.responseJSON.message);

            }
        }); 
    }); 
}); 

</script> --}}

proud sky
proud sky
#

!help

pallid island
#

To me it seems like you are getting an error response from the API and it is not being handled correctly. Can you share the file that makes this API request to OpenAI?