Skip to content

Commit

Permalink
Update readme, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-one committed Apr 26, 2023
1 parent 1d099e6 commit 12aecb4
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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)

<p align="center">
<img src="./docs/preview.gif" alt="EdgeGPT-GO preview"/>
</p>
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.
Expand All @@ -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
Expand Down Expand Up @@ -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`
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
```
Binary file added docs/preview.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 12aecb4

Please sign in to comment.