A simple example using acheong08's EdgeGPT
-
build image
docker image build -t cphovo/bing .
-
start service
docker run -it -p 8000:8000 cphovo/bing
-
send request
curl -X POST -H "Authorization: cphovo-e1fecb424bb92b04223f5bc7ebe938d94" -H "Content-Type: application/json" -d '{ "text": "hello", "style": "creative" }' http://your_ip:8000/bing/ask
-
response
{ "text":"Hello, this is Bing. How can I help? ๐", "author":"bot","sources":"Hello, this is Bing. How can I help? ๐\n", "sources_text":"Hello, this is Bing. How can I help? ๐\n", "suggestions":[ "What is the weather like in Adelaide?", "Tell me a joke.", "Who won the last Australian Open?" ], "messages_left":9, "max_messages":10, "adaptive_text":"Hello, this is Bing. How can I help? ๐\n" }
Note: Use proxychains
to solve websocket error problems through proxies.
This demo reference acheong08's open source project, many thanks ๐.