Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpect JSON response error #14

Closed
adrianrodriguez-io opened this issue May 16, 2023 · 2 comments
Closed

Unexpect JSON response error #14

adrianrodriguez-io opened this issue May 16, 2023 · 2 comments

Comments

@adrianrodriguez-io
Copy link

Hi,

Thanks for working in this repo, it is very interesting.

I have tried your code but after setting my Open AI api key in config.php and writing and submit a simple Hi prompt, it returns an error like as follows.

Uncaught (in promise) SyntaxError: Unexpected end of JSON input
at HTMLFormElement. (script.js:26:37)
(anonymous) @ script.js:26

What could be the problem.

Thanks

@VolkanSah
Copy link
Owner

sorry testet again lokks good. look for syntax error please. you make the mistake . Open consoleand show for errors. Sorry bro, but if you make a mistake by a so simple script and cant understand the error, please let it, cause you can harm yourself. It is an basic to learn! Read the Readme.md again please!

@adrianrodriguez-io
Copy link
Author

adrianrodriguez-io commented May 16, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants