update readme/codeTipsProxy.md.

Signed-off-by: luyoyu <8829470+chuangxxt@user.noreply.gitee.com>
This commit is contained in:
luyoyu 2023-09-20 17:56:57 +00:00 committed by Gitee
parent 4d6c9cc958
commit 71c4bcf440
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -8,22 +8,17 @@
`%userprofile%\.vscode\extensions\github.copilot-xxxx\dist\extension.js`
```js
//extension.js头部添加环境变量 127.0.0.1改为你自己的接口
process.env.completionsUrl="http://127.0.0.1";
process.env.telemetryUrl="http://127.0.0.1/telemetry";
```
**1.1.extension.js全文搜索替换下面两个接口替换为上方定义的环境变量,注意引号一起搜索替换**
(当然你也可以不定义环境变量,直接搜索后替换成自己的url,这样引号保留)
**1.1.extension.js全文搜索替换下面两个接口替换为自己的url**
```js
"https://copilot-proxy.githubusercontent.com"
替换为process.env.completionsUrl
替换为"http://127.0.0.1" (你的url)
这个是代码提示接口
---------------------------------------------------------------
"https://copilot-telemetry.githubusercontent.com/telemetry"
替换为 process.env.completionsUrl
替换为"http://127.0.0.1/telemetry" (你的url/telemetry)
这个应该是copilot把你代码上传拿去深度学习的,直接改成null好像也不影响使用
```