mirror of
https://gitee.com/chuangxxt/share-copilot
synced 2025-06-09 06:23:25 +00:00
Compare commits
4 Commits
f134f2541b
...
934820d691
Author | SHA1 | Date | |
---|---|---|---|
|
934820d691 | ||
|
150a88d2b5 | ||
|
4fe39fff57 | ||
|
04fb051b23 |
22
README.md
22
README.md
@ -1,12 +1,5 @@
|
||||
[中文](README.md) / [English](README-EN.md)
|
||||
[中文](README.md) |[English](README-EN.md)
|
||||
|
||||
------
|
||||
|
||||
测试版已经支持全部接口代理,
|
||||
所有也就是代码提示也走代理,
|
||||
还在测试中。
|
||||
|
||||

|
||||
***
|
||||
# share-copilot
|
||||
|
||||
@ -21,7 +14,8 @@
|
||||
|
||||
1.本地插件携ghu_token请求github的API
|
||||
|
||||
2.返回带有时间戳的copilot的token(下面简称co_token),代码提示都是用的co_token
|
||||
2.返回带有时间戳的copilot的token(下面简称co_token),
|
||||
代码提示都是用的co_token
|
||||
|
||||
3.co_token到期->ghu_token重新请求->获得新的co_token
|
||||
-------------------------------------------------------------
|
||||
@ -32,12 +26,12 @@
|
||||
|
||||
1.携ghu_token请求github的API,暂存co_token
|
||||
|
||||
2.多用户请求时,判断co_token有没有过期,没过期直接返回,减少ghu_token的请求次数(大约10-20分钟过期)
|
||||
|
||||
至于本地co_token,也就是代码提示没有走代理(可以代理,但是要修改插件,jetbrains的插件还要重新build)
|
||||
|
||||
猜测风控目前也只是停留在请求ghu_token这一层
|
||||
2.多用户请求时,判断co_token有没有过期,没过期直接返回,
|
||||
减少ghu_token的请求次数(大约10-20分钟过期)
|
||||
|
||||
3.至于本地co_token,也就是代码提示没有走代理(可以代理,但是要修改插件,jetbrains的插件还要重新build)
|
||||
猜测风控目前也只是停留在请求ghu_token这一层
|
||||
|
||||
"cocopilot也是代理了ghu_token请求,并没有破解插件"
|
||||
|
||||
```
|
||||
|
BIN
readme/image-20230918171305526.png
Normal file
BIN
readme/image-20230918171305526.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
Loading…
Reference in New Issue
Block a user