mirror of
https://gitee.com/chuangxxt/share-copilot
synced 2025-04-18 23:03:26 +00:00
update README.md.
原理解释 Signed-off-by: luyoyu <8829470+chuangxxt@user.noreply.gitee.com>
This commit is contained in:
parent
4fd2515d43
commit
84ecafbf94
@ -18,11 +18,11 @@
|
|||||||
```sh
|
```sh
|
||||||
简单说一下本地插件原本的请求逻辑:
|
简单说一下本地插件原本的请求逻辑:
|
||||||
|
|
||||||
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
|
||||||
-------------------------------------------------------------
|
-------------------------------------------------------------
|
||||||
|
|
||||||
代理服务器代理的是 ghu_token请求 这一环节:
|
代理服务器代理的是 ghu_token请求 这一环节:
|
||||||
|
Loading…
Reference in New Issue
Block a user