mod readme

This commit is contained in:
ben Gutier 2023-09-13 17:03:59 +08:00
parent 7f81713d48
commit 89c05e98df
2 changed files with 41 additions and 10 deletions

View File

@ -1,17 +1,24 @@
The beta version now supports full interface proxy, S The beta version now supports full interface proxy,
o even code suggestions go through the proxy, So even code suggestions go through the proxy,
Still in testing. Still in testing.
![输入图片说明](readme/screenshots.gif) ![输入图片说明](readme/screenshots.gif)
*** ***
# share-copilot # share-copilot
- Acts as a proxy server, forwarding requests to the Copilot plugin's API - Acts as a proxy server, forwarding requests to the Copilot plugin's API
- Supports both vscode and Jetbrains plugins - Supports both vscode and Jetbrains plugins
- Supports multiple users sharing a single token - Supports multiple users sharing a single token
- Optimize request logic to reduce suspended probability
- Optimize request logic to reduce suspended probability、
![软件系统网络架构.png](https://img1.imgtp.com/2023/09/10/qTL8A2u9.png) ![软件系统网络架构.png](https://img1.imgtp.com/2023/09/10/qTL8A2u9.png)
@ -23,6 +30,7 @@ Requires Go environment;
resolve any issues chatgpt. resolve any issues chatgpt.
``` ```
```sh ```sh
git clone
wget https://dl.google.com/go/go1.21.1.linux-amd64.tar.gz wget https://dl.google.com/go/go1.21.1.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.21.1.linux-amd64.tar.gz tar -C /usr/local -xzf go1.21.1.linux-amd64.tar.gz
@ -46,17 +54,29 @@ go build
### 1.Installation ### 1.Installation
```sh ```sh
git clone https://gitlab.com/luyoyu/share-copilot.git wget https://gitee.com/chuangxxt/share-copilot/releases/download/1.0.2/share-copilot-linux-amd64.zip
``` ```
```sh
unzip share-copilot-linux-amd64.zip
```
```sh ```sh
cd share-copilot cd share-copilot
``` ```
```sh
chmod +x share-copilot
```
```sh ```sh
bash install.sh bash install.sh
``` ```
### 2.Configuration ### 2.Configuration
```sh
vim config.json
```
##### 2.1 Explanation of config.json ##### 2.1 Explanation of config.json
```js ```js

View File

@ -1,4 +1,4 @@
[中文](README.md) [English](README-EN.md) [中文](README.md) / [English](README-EN.md)
------ ------
@ -14,6 +14,7 @@
- 支持vscode插件和jetbrains插件 - 支持vscode插件和jetbrains插件
- 支持多用户共享一个token - 支持多用户共享一个token
- 优化请求逻辑降低suspended概率别万人骑基本不会 - 优化请求逻辑降低suspended概率别万人骑基本不会
![软件系统网络架构.png](https://img1.imgtp.com/2023/09/10/qTL8A2u9.png) ![软件系统网络架构.png](https://img1.imgtp.com/2023/09/10/qTL8A2u9.png)
*** ***
@ -48,17 +49,27 @@ go build
```sh ```sh
wget https://gitee.com/chuangxxt/share-copilot/releases/download/1.0.2/share-copilot-linux-amd64.zip wget https://gitee.com/chuangxxt/share-copilot/releases/download/1.0.2/share-copilot-linux-amd64.zip
```
```sh
unzip share-copilot-linux-amd64.zip unzip share-copilot-linux-amd64.zip
``` ```
```sh ```sh
cd share-copilot cd share-copilot
``` ```
```sh
chmod +x share-copilot
```
```sh ```sh
bash install.sh bash install.sh
``` ```
### 2.配置 ### 2.配置
```sh
vim config.json #修改配置信息
```
##### 2.1 config.json文件说明 ##### 2.1 config.json文件说明
```js ```js
@ -106,11 +117,11 @@ verification//自定义验证
### 3.启动 ### 3.启动
``` ```sh
scop r --运行 [Esc退出] scop r #运行 [Esc退出]
scop rb --后台运行 scop rb #后台运行
scop st --停止 scop st #停止
scop v --查看状态 scop v #查看是否运行
``` ```
### 4.完整例子: ### 4.完整例子: