mirror of
https://gitee.com/chuangxxt/share-copilot
synced 2025-04-18 23:13:27 +00:00
update README.md
This commit is contained in:
parent
f134f2541b
commit
04fb051b23
22
README.md
22
README.md
@ -1,12 +1,15 @@
|
|||||||
[中文](README.md) / [English](README-EN.md)
|
[中文](README.md) |[English](README-EN.md)
|
||||||
|
|
||||||
------
|
------
|
||||||
|
|
||||||
测试版已经支持全部接口代理,
|
vscode 的插件js不需要打包,所以修改一下接口就可以支持代码提示走代理
|
||||||
所有也就是代码提示也走代理,
|
|
||||||
还在测试中。
|
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
jetbrains 的 copilot插件 ,js文件修改接口地址后,打包成exe不能正常使用,有没有会的大佬啊!~
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
***
|
***
|
||||||
# share-copilot
|
# share-copilot
|
||||||
|
|
||||||
@ -21,7 +24,8 @@
|
|||||||
|
|
||||||
1.本地插件携ghu_token请求github的API
|
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
|
3.co_token到期->ghu_token重新请求->获得新的co_token
|
||||||
-------------------------------------------------------------
|
-------------------------------------------------------------
|
||||||
@ -32,11 +36,11 @@
|
|||||||
|
|
||||||
1.携ghu_token请求github的API,暂存co_token
|
1.携ghu_token请求github的API,暂存co_token
|
||||||
|
|
||||||
2.多用户请求时,判断co_token有没有过期,没过期直接返回,减少ghu_token的请求次数(大约10-20分钟过期)
|
2.多用户请求时,判断co_token有没有过期,没过期直接返回,
|
||||||
|
减少ghu_token的请求次数(大约10-20分钟过期)
|
||||||
|
|
||||||
至于本地co_token,也就是代码提示没有走代理(可以代理,但是要修改插件,jetbrains的插件还要重新build)
|
3.至于本地co_token,也就是代码提示没有走代理(可以代理,但是要修改插件,jetbrains的插件还要重新build)
|
||||||
|
猜测风控目前也只是停留在请求ghu_token这一层
|
||||||
猜测风控目前也只是停留在请求ghu_token这一层
|
|
||||||
|
|
||||||
"cocopilot也是代理了ghu_token请求,并没有破解插件"
|
"cocopilot也是代理了ghu_token请求,并没有破解插件"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user