mirror of
				https://gitee.com/chuangxxt/share-copilot
				synced 2025-10-30 06:39:51 +00:00 
			
		
		
		
	update readme/codeTipsProxy.md.
Signed-off-by: luyoyu <8829470+chuangxxt@user.noreply.gitee.com>
This commit is contained in:
		
							parent
							
								
									4d6c9cc958
								
							
						
					
					
						commit
						71c4bcf440
					
				| @ -8,22 +8,17 @@ | |||||||
| 
 | 
 | ||||||
| `%userprofile%\.vscode\extensions\github.copilot-xxxx\dist\extension.js` | `%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全文搜索替换下面两个接口,替换为上方定义的环境变量,注意引号一起搜索替换**  | **1.1.extension.js全文搜索替换下面两个接口,替换为自己的url**  | ||||||
| (当然你也可以不定义环境变量,直接搜索后替换成自己的url,这样引号保留) | 
 | ||||||
| 
 | 
 | ||||||
| ```js | ```js | ||||||
| "https://copilot-proxy.githubusercontent.com"  | "https://copilot-proxy.githubusercontent.com"  | ||||||
| 替换为process.env.completionsUrl | 替换为"http://127.0.0.1" (你的url) | ||||||
| 这个是代码提示接口 | 这个是代码提示接口 | ||||||
| 
 | --------------------------------------------------------------- | ||||||
| "https://copilot-telemetry.githubusercontent.com/telemetry" | "https://copilot-telemetry.githubusercontent.com/telemetry" | ||||||
| 替换为 process.env.completionsUrl | 替换为"http://127.0.0.1/telemetry" (你的url/telemetry) | ||||||
| 这个应该是copilot把你代码上传拿去深度学习的,直接改成null好像也不影响使用 | 这个应该是copilot把你代码上传拿去深度学习的,直接改成null好像也不影响使用 | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user