Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Not Found error. #46

Open
navinlam108 opened this issue Mar 24, 2023 · 1 comment
Open

Not Found error. #46

navinlam108 opened this issue Mar 24, 2023 · 1 comment

Comments

@navinlam108
Copy link

I created a docker image and ran it using:

docker build -t chatgpt:1.0 .
docker run -d -p 8080:8080 chatgpt:1.0
I exposed port 8080 of the container, so I could use it on my localhost browser.

The server is listening on 8080 but when I tried to run it, I get a 'not found' error.

index.js references some /v1/chat/completions folder but I don't see it in the local directory.

I renamed ".env.example" to ".env" and entered two OpenAI API keys there. Prior to renaming it, I was getting some other error related to the JSON parse error.

One error is leading to fixing another thing and now I am stuck on this 'Not found' page.

Any light on this matter would be greatly appreciated. Thanks.

PS: I am running Docker Desktop latest version, x86 machine, Windows 10.

@ayaka14732
Copy link
Owner

That's maybe because you use the GET method. You should use POST instead

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

No branches or pull requests

2 participants