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

Why does the client send the POST to 'https://codex-im0y.onrender.com/'? #58

Open
exowanderer opened this issue May 17, 2023 · 1 comment

Comments

@exowanderer
Copy link

In the script.js, why does the request fetch a POST from 'https://codex-im0y.onrender.com/'?

The server.js hosts the server on port 5000 of localhost. It seems as though the default script.js is store the GitHub users' prompts on the onrender.com server without users that don't read the code knowing.

const response = await fetch('https://codex-im0y.onrender.com/', {

@JONATHANJ64
Copy link

const response = await fetch('http://localhost:5000', {
method: 'POST',
headers: {
    'Content-Type': 'application/json',
},
body: JSON.stringify({
    prompt: data.get('prompt')
})

});

That is a sample example it should be. port 5000 to test

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