ChatGPT-API-server icon indicating copy to clipboard operation
ChatGPT-API-server copied to clipboard

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

Open zjrwtx opened this issue 3 years ago • 21 comments

image image

zjrwtx avatar Dec 27 '22 02:12 zjrwtx

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

acheong08 avatar Dec 27 '22 03:12 acheong08

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

acheong08 avatar Dec 27 '22 03:12 acheong08

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

zjrwtx avatar Dec 27 '22 03:12 zjrwtx

You need double quotes for header

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

acheong08 avatar Dec 27 '22 03:12 acheong08

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

acheong08 avatar Dec 27 '22 03:12 acheong08

Windows might do some weird stuff with some characters

acheong08 avatar Dec 27 '22 03:12 acheong08

image it still has error

zjrwtx avatar Dec 27 '22 03:12 zjrwtx

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 \

acheong08 avatar Dec 27 '22 03:12 acheong08

image image Uploading image.png… it appears that 404error

zjrwtx avatar Dec 27 '22 06:12 zjrwtx

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

acheong08 avatar Dec 27 '22 06:12 acheong08

And you're missing the content/payload data

acheong08 avatar Dec 27 '22 06:12 acheong08

And you're missing the content/payload data

image not really understand what you mean,

zjrwtx avatar Dec 27 '22 06:12 zjrwtx

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

acheong08 avatar Dec 27 '22 07:12 acheong08

image acactual,i have already make it

zjrwtx avatar Dec 27 '22 07:12 zjrwtx

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

acheong08 avatar Dec 28 '22 13:12 acheong08

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

syn19950605 avatar Dec 30 '22 03:12 syn19950605

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

acheong08 avatar Dec 30 '22 03:12 acheong08

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

syn19950605 avatar Dec 30 '22 03:12 syn19950605

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

acheong08 avatar Dec 30 '22 03:12 acheong08

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

cathyxl avatar Jan 01 '23 15:01 cathyxl

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

acheong08 avatar Jan 01 '23 18:01 acheong08