gpt4free icon indicating copy to clipboard operation
gpt4free copied to clipboard

How do I use the api in other clients

Open Joackk opened this issue 10 months ago • 5 comments

Bug description I used docker for the setup, and everything worked fine when I used the python scripts in the documentation to call the api, but I did not work properly in the client using the api, such as ChatGPT Next Web and Chatbox, how do I use the api in these programs? image image

Joackk avatar Oct 11 '23 02:10 Joackk

you can only use these on selfhosted instances, and with localhost urls like http://127.0.0.1:1337, as you can't go on an online chatgpt nextweb site and plug in the interference app

and even then, do not add the http:// in that field, just the 127.0.0.1:1337 part, that's a chatgptnextweb thing

zukixa avatar Oct 11 '23 05:10 zukixa

you can only use these on selfhosted instances, and with localhost urls like http://127.0.0.1:1337, as you can't go on an online chatgpt nextweb site and plug in the interference app

and even then, do not add the http:// in that field, just the 127.0.0.1:1337 part, that's a chatgptnextweb thing

I installed docker in my virtual machine. So here I'm using a LAN address. So we can't use it in some third-party programs? Are there any examples of such self-hosted programs?

Joackk avatar Oct 11 '23 05:10 Joackk

Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again.

github-actions[bot] avatar Oct 19 '23 00:10 github-actions[bot]

you could try turning the local host into a normal host

hussen1968 avatar Jan 10 '24 17:01 hussen1968

i think the url is: http://127.0.0.1:1337/v1

hlohaus avatar Jan 10 '24 19:01 hlohaus