File size: 994 Bytes
3e80069
 
 
 
 
 
 
 
 
44c5e78
 
6d5bbba
2cecdc3
6d5bbba
2cecdc3
 
 
dee0618
 
 
 
 
 
 
68ceef4
 
 
 
 
 
dee0618
 
68ceef4
 
dee0618
 
 
 
68ceef4
dee0618
 
68ceef4
 
 
 
 
dee0618
 
2cecdc3
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
title: Bing Chat API
emoji: 🧬
colorFrom: gray
colorTo: gray
sdk: docker
app_port: 22222
---

## Bing-Chat-API

A successor to [EdgeGPT](https://github.com/acheong08/EdgeGPT) by [acheong08](https://github.com/acheong08).

**Note: This project is in rapid progress, and currently is not ready to be used in production.**

After completing some key features, I would focus on the quick deployment of this project.

## Install dependencies

```bash
# pipreqs . --force --mode no-pin
pip install -r requirements.txt
```

## Docker Build

```bash
sudo docker build -t bing-chat-api:1.0 . --build-arg http_proxy=$http_proxy --build-arg https_proxy=$https_proxy
```

## Run

Command Line:

```bash
python -m apis.chat_api
```

Docker run:

```bash
# no proxy
sudo docker run -p 22222:22222 bing-chat-api:1.0

# with proxy
sudo docker run -p 22222:22222 --env http_proxy="http://<server>:<port>" bing-chat-api:1.0
```

## Example

Command Line:

![Bing-Chat-API-CLI](./docs/bing-chat-api-cli.png)