diff --git a/README.md b/README.md index 2417348..3ca2c04 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,11 @@ ## 🪄 EdgeGPT-Go +![Go version](https://img.shields.io/github/go-mod/go-version/pavel-one/EdgeGPT-GO) +[![Release](https://img.shields.io/github/v/release/pavel-one/EdgeGPT-GO)](https://github.com/pavel-one/EdgeGPT-Go/releases) [![Go Reference](https://pkg.go.dev/badge/github.com/pavel-one/EdgeGPT-Go.svg)](https://pkg.go.dev/github.com/pavel-one/EdgeGPT-Go) +

+ EdgeGPT-GO preview +

EdgeGPT-Go is a New Bing unofficial API developed using Golang. You can use it as a library, microservice or standalone cli application. The package supports multiple cookies. As well as rapid deployment as a microservice via docker. @@ -24,6 +29,11 @@ The package supports multiple cookies. As well as rapid deployment as a microser If you have several accounts - repeat for each of them and save to the `cookies` folder +### Use as a chat cli app +```shell +docker run -it -v ./cookies:/app/cookies ghcr.io/pavel-one/edgegpt-chat +``` +Or download binary in [release page](https://github.com/pavel-one/EdgeGPT-Go/releases) ### Use as a library ```shell go get github.com/pavel-one/EdgeGPT-Go @@ -94,5 +104,30 @@ services: Work progress... ## FAQ: + #### Change protoc -If you change protoc file, use `protoc --go_out=. --go-grpc_out=. proto/gpt.proto` \ No newline at end of file +If you change protoc file, use `protoc --go_out=. --go-grpc_out=. proto/gpt.proto` + +#### Stopped after 10 redirects +If you use this library in China set environment: +```shell +CONVERSATION_ENDPOINT='https://edge.churchless.tech/edgesvc/turing/conversation/create' +``` +Example: +```shell +docker run -e CONVERSATION_ENDPOINT='https://edge.churchless.tech/edgesvc/turing/conversation/create' -v ./cookies:/app/cookies -p 8080:8080 ghcr.io/pavel-one/edgegpt-grpc:latest +``` +Or docker-compose: +```yaml +version: "3" +services: + gpt: + image: ghcr.io/pavel-one/edgegpt-grpc:latest + restart: unless-stopped + environment: + - CONVERSATION_ENDPOINT='https://edge.churchless.tech/edgesvc/turing/conversation/create' + ports: + - "8080:8080" + volumes: + - ./cookies:/app/cookies +``` diff --git a/docs/preview.gif b/docs/preview.gif new file mode 100644 index 0000000..90caa52 Binary files /dev/null and b/docs/preview.gif differ