microsoft / vscode-copilot-release

Feedback on GitHub Copilot Chat UX in Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=GitHub.copilot-chat
Creative Commons Attribution 4.0 International
330 stars 31 forks source link

It wait 20 seconds and then request api.githubcopilot.com:443 #1450

Open arloor opened 2 months ago

arloor commented 2 months ago

It turns slow from some time. I checked every thing and found that copilot chat did not send requests to api.githubcopilot.com:443 immediately.

Steps to Reproduce:

  1. just ask copilot in chat
roblourens commented 2 months ago

Please give some more details about exactly what you're seeing

lramos15 commented 2 months ago
  1. Ensure you're on the latest VS Code Insiders + GitHub Copilot Chat pre-release
  2. Set log level to trace F1 -> Set Log Level -> Trace
  3. reproduce the issue
  4. Attach the Github Copilot Chat log, via CMD/CTRL + SHIFT +U -> GitHub Copilot Chat
arloor commented 2 months ago
  1. Ensure you're on the latest VS Code Insiders + GitHub Copilot Chat pre-release
  2. Set log level to trace F1 -> Set Log Level -> Trace
  3. reproduce the issue
  4. Attach the Github Copilot Chat log, via CMD/CTRL + SHIFT +U -> GitHub Copilot Chat

It takes each 10 seconds for "Resolving chat model" and "Processed panel chat intent". It is so weird becasuse 10 seconds seems like "sleep 10 seconds". By the way, this case appears at my mackbook provided by my company. Is it possible that my company hacked the electron or copliot chat extension? I guess that because my company encourages us to use my company's own chat extension just like copilot chat.

2024-08-08 14:16:39.148 [trace] Panel chat request received from extension host
2024-08-08 14:16:39.148 [trace] Processing panel chat intent
2024-08-08 14:16:39.148 [trace] Resolving chat model
2024-08-08 14:16:39.149 [trace] Resolving chat model
2024-08-08 14:16:49.157 [trace] Resolved chat model
2024-08-08 14:16:49.158 [trace] Resolved chat model
2024-08-08 14:16:49.159 [trace] Processed panel chat intent
2024-08-08 14:16:59.170 [trace] Built panel chat prompt
2024-08-08 14:16:59.171 [trace] Sending panel chat prompt to model
2024-08-08 14:17:01.394 [info] [chat fetch] request.response: [https://api.githubcopilot.com/chat/completions], took 2181 ms
2024-08-08 14:17:06.507 [info] message 0 returned. finish reason: [stop]
2024-08-08 14:17:06.509 [info] request done: requestId: [04a1c2be-619e-4e27-90b4-c1be47822f19] model deployment ID: []

2024-08-08 14:46:06.237 [trace] Panel chat request received from extension host
2024-08-08 14:46:06.237 [trace] Processing panel chat intent
2024-08-08 14:46:06.237 [trace] Resolving chat model
2024-08-08 14:46:06.237 [trace] Resolving chat model
2024-08-08 14:46:16.243 [trace] Resolved chat model
2024-08-08 14:46:16.244 [trace] Resolved chat model
2024-08-08 14:46:16.245 [trace] Processed panel chat intent
2024-08-08 14:46:26.260 [trace] Built panel chat prompt
2024-08-08 14:46:26.260 [trace] Sending panel chat prompt to model
2024-08-08 14:46:28.756 [info] [chat fetch] request.response: [https://api.githubcopilot.com/chat/completions], took 2453 ms
2024-08-08 14:46:35.346 [info] message 0 returned. finish reason: [stop]
2024-08-08 14:46:35.347 [info] request done: requestId: [806705eb-987b-41a5-8621-ad0d611bb2fe] model deployment ID: []
2024-08-08 14:46:46.311 [trace] Resolving chat model
2024-08-08 14:46:56.319 [trace] Resolved chat model
2024-08-08 14:46:58.269 [info] [chat fetch] request.response: [https://api.githubcopilot.com/chat/completions], took 1932 ms
2024-08-08 14:46:58.563 [info] message 0 returned. finish reason: [stop]
2024-08-08 14:46:58.565 [info] request done: requestId: [b6426a0f-695f-448a-840e-bb0660335200] model deployment ID: []