acheong08 / ChatGPT-API-server

API server for ChatGPT
MIT License
782 stars 137 forks source link

Hello, I did not find any executable exe program after finishing go install. Therefore, my ChatGPT-API-server 8080 mysecretkey cannot take effect. May I ask how to change it #15

Open zjrwtx opened 1 year ago

zjrwtx commented 1 year ago

image image

acheong08 commented 1 year ago

Ah. The curse of Windows. You need to build it manually

acheong08 commented 1 year ago

And rather than doing go install ., do go build .. The executable should show up in the current working directory

zjrwtx commented 1 year ago

And rather than doing go install ., do go build .. The executable should show up in the current working directory well ,i solve it,but there is a new problem,400error

image image

acheong08 commented 1 year ago

You need double quotes for header

curl "http://localhost:8080/api/ask" -X POST --header "Authorization: API_KEY" -d '{"content": "1+1"}'

acheong08 commented 1 year ago

Also don't fill out conversation_id and parent_id if not present

acheong08 commented 1 year ago

Windows might do some weird stuff with some characters

zjrwtx commented 1 year ago

image it still has error

acheong08 commented 1 year ago

There is some weird thing going on with quotes in windows. You might want to try out postman or some other HTTP tools. Or maybe try escaping the special characters with \

zjrwtx commented 1 year ago

image image ![Uploading image.png…]() it appears that 404error

acheong08 commented 1 year ago

You're making GET requests. It has to be POST request

acheong08 commented 1 year ago

And you're missing the content/payload data

zjrwtx commented 1 year ago

And you're missing the content/payload data

image not really understand what you mean,

acheong08 commented 1 year ago

Now the issue here is that you haven't connected any Agents. Check out https://github.com/ChatGPT-Hackers/ChatGPT-API-agent

Make sure the agent can connect to the server

zjrwtx commented 1 year ago

image acactual,i have already make it

acheong08 commented 1 year ago

Can you screenshot the server output and see if there is a request made to /client/register?

syn19950605 commented 1 year ago

Can you screenshot the server output and see if there is a request made to /client/register?

image

image

I have completed the anget on Firefox, but the access interface is still 400.Could you tell me how to do it

acheong08 commented 1 year ago

The agent is failing to register for an unknown reason. You can try to debug via the browser console

syn19950605 commented 1 year ago

image I have pulled the latest code, but I still can't register the link pool. How can I run the api/ask interface

acheong08 commented 1 year ago

This might be a bug with the agent. You need to debug that part.

cathyxl commented 1 year ago

I’ve met the same problem of getting error 503, no available clients. When I try to login to the chatgpt agent. This page is like this. It seems openai 've blocked this attempt. image

acheong08 commented 1 year ago

They are getting better at detecting bots, even in browsers. It's annoying that they're watching