mirror of
https://gitee.com/chuangxxt/share-copilot
synced 2025-06-09 18:23:25 +00:00
Compare commits
No commits in common. "934820d691daac67790163e077861b9b8f5b9a0b" and "f134f2541b1e18cf22b313df49d54fc76787df73" have entirely different histories.
934820d691
...
f134f2541b
18
README.md
18
README.md
@ -1,5 +1,12 @@
|
|||||||
[中文](README.md) |[English](README-EN.md)
|
[中文](README.md) / [English](README-EN.md)
|
||||||
|
|
||||||
|
------
|
||||||
|
|
||||||
|
测试版已经支持全部接口代理,
|
||||||
|
所有也就是代码提示也走代理,
|
||||||
|
还在测试中。
|
||||||
|
|
||||||
|

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