From 89c05e98df79b14aa7be45d1ca411f28c0bb27e4 Mon Sep 17 00:00:00 2001 From: ben Gutier Date: Wed, 13 Sep 2023 17:03:59 +0800 Subject: [PATCH] mod readme --- README-EN.md | 28 ++++++++++++++++++++++++---- README.md | 23 +++++++++++++++++------ 2 files changed, 41 insertions(+), 10 deletions(-) diff --git a/README-EN.md b/README-EN.md index 3160e6d..b0eab18 100644 --- a/README-EN.md +++ b/README-EN.md @@ -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. + + ![输入图片说明](readme/screenshots.gif) *** # share-copilot - Acts as a proxy server, forwarding requests to the Copilot plugin's API + - Supports both vscode and Jetbrains plugins + - 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) @@ -23,6 +30,7 @@ Requires Go environment; resolve any issues chatgpt. ``` ```sh +git clone 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 @@ -46,17 +54,29 @@ go build ### 1.Installation ```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 cd share-copilot ``` +```sh +chmod +x share-copilot +``` + ```sh bash install.sh ``` ### 2.Configuration +```sh +vim config.json +``` + ##### 2.1 Explanation of config.json ```js diff --git a/README.md b/README.md index 18015cf..ef4d4bb 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[中文](README.md) [English](README-EN.md) +[中文](README.md) / [English](README-EN.md) ------ @@ -14,6 +14,7 @@ - 支持vscode插件和jetbrains插件 - 支持多用户共享一个token - 优化请求逻辑,降低suspended概率(别万人骑基本不会) + ![软件系统网络架构.png](https://img1.imgtp.com/2023/09/10/qTL8A2u9.png) *** @@ -48,17 +49,27 @@ go build ```sh 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 cd share-copilot ``` +```sh +chmod +x share-copilot +``` + ```sh bash install.sh ``` ### 2.配置 +```sh +vim config.json #修改配置信息 +``` + ##### 2.1 config.json文件说明 ```js @@ -106,11 +117,11 @@ verification//自定义验证 ### 3.启动 -``` -scop r --运行 [Esc退出] -scop rb --后台运行 -scop st --停止 -scop v --查看状态 +```sh +scop r #运行 [Esc退出] +scop rb #后台运行 +scop st #停止 +scop v #查看是否运行 ``` ### 4.完整例子: