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
311 stars 28 forks source link

Github copilet gives "Unable to resolve chat model with family selection: gpt-4" #1377

Closed 8Klaro8 closed 2 months ago

8Klaro8 commented 2 months ago

PLEASE NOTE: I read about this problem, and I found this issue: https://github.com/microsoft/vscode-copilot-release/issues/1294 It has been closed and was mentioned by: chrmarti to create new issue, therefore I did so.

When I restart VSC and I try to type into the chat it says: Unable to resolve chat model with family selection: gpt-3.5-turbo, then if I type again it says: Unable to resolve chat model with family selection: gpt-4, although I did not subscribe to chatGTP.

Based on the suggestions I switched to pre-release version. I tried to open "Developer: GitHub Copilot Chat Diagnostics" but I got this:

INFO

Copilot

Environment

Feature Flags

Node setup

Network Configuration

Reachability

VS Code Configuration

Extensions

Authentication

Steps to Reproduce:

  1. Install Github copilot
  2. Type something the chat field and press enter
chrmarti commented 2 months ago

@8Klaro8 You seem to be connected to WSL. Could you install the Network Proxy Test extension (https://marketplace.visualstudio.com/items?itemName=chrmarti.network-proxy-test) in WSL and check the output of F1 > Network Proxy Test: Test Connection in VS Code for the two URLs:

(The diagnostics above show the first fail due to a certificate issue, but the second succeeds. Both have the same root certificate in their chain for me, so something appears to be different in your case.)

8Klaro8 commented 2 months ago

Hi @chrmarti !

Yes, I am using WSL, although the result is the same, when I try to use it without WSL. The requested logs...

1.) api.githubcopilot

Note: Make sure to replace all sensitive information with dummy values before sharing this output.

VS Code 1.91.0 (ea1445cc7016315d0f5728f8e8b12a45dc0a7286) Network Proxy Test 0.0.11 linux 5.15.153.1-microsoft-standard-WSL2 x64

Settings:

Environment variables:

Sending GET request to https://api.githubcopilot.com... vscode-proxy-agent: DIRECT Received error: read ECONNRESET (ECONNRESET) Retrying while ignoring certificate issues to collect information on the certificate chain.

Sending GET request to https://api.githubcopilot.com (allowing unauthorized)... vscode-proxy-agent: DIRECT Received error: read ECONNRESET (ECONNRESET)

2.) copilot-proxy.githubusercontent

Note: Make sure to replace all sensitive information with dummy values before sharing this output.

VS Code 1.91.0 (ea1445cc7016315d0f5728f8e8b12a45dc0a7286) Network Proxy Test 0.0.11 linux 5.15.153.1-microsoft-standard-WSL2 x64

Settings:

Environment variables:

Sending GET request to https://copilot-proxy.githubusercontent.com... vscode-proxy-agent: DIRECT Received response:

If there is anything else I can assist with, let me know.

chrmarti commented 2 months ago

The error in this case is ECONNRESET unlike before where it was "self-signed certificate in certificate chain".

Are you behind a firewall that might need to allow-list api.githubcopilot.com?

itsalljustdata commented 2 months ago

If I can piggyback into this one -i've got the same issue...

This is in a devcontainer (mcr.microsoft.com/devcontainers/python:3.11-bookworm) running on a debian machine, and i'm connecting from Win11

When I'm running like this, which of the 3 environments do the web calls actually get sent from?

Version Info
GitHub Copilot v1.212.983 pre-release
GitHub Copilot Chat v0.17.2024062801 pre-release
VS Code 1.91.0 user setup
OS (Win) 10.0.22631.3880 Win 11 23H2
OS (Server) Debian 12 Bookworm
OS (devcontainer) Debian 12 Bookworm

Copilot Logs

2024-07-12 14:49:00.520 [info] [fetcher] Using Helix fetcher, Electron fetcher is not available.
2024-07-12 14:49:00.566 [info] [auth] Sucessfully authenticated

Network Proxy Test Output

VS Code 1.91.0 (ea1445cc7016315d0f5728f8e8b12a45dc0a7286)
Network Proxy Test 0.0.11
linux 6.1.0-22-amd64 x64

Settings:
- http.proxy: 
- http.proxyAuthorization: null
- http.proxyStrictSSL: true
- http.proxySupport: override
- http.systemCertificates: true

Environment variables:
Sending GET request to https://copilot-proxy.githubusercontent.com...
vscode-proxy-agent: DIRECT
Received response:
- Status: 404 
Certificate chain:
- Subject: *.githubusercontent.com (GitHub, Inc.)
  Subject alt: DNS:*.githubusercontent.com, DNS:githubusercontent.com
  Validity: Jun 20 00:00:00 2024 GMT - Jun 19 23:59:59 2025 GMT
  Fingerprint: 01:72:81:80:B7:7B:99:17:D1:47:27:D0:F1:A6:A4:D5:A5:91:9B:3E
- Subject: DigiCert Global G2 TLS RSA SHA256 2020 CA1 (DigiCert Inc)
  Validity: Mar 30 00:00:00 2021 GMT - Mar 29 23:59:59 2031 GMT
  Fingerprint: 1B:51:1A:BE:AD:59:C6:CE:20:70:77:C0:BF:0E:00:43:B1:38:26:12
- Subject: DigiCert Global Root G2 (DigiCert Inc)
  Validity: Aug  1 12:00:00 2013 GMT - Jan 15 12:00:00 2038 GMT
  Fingerprint: DF:3C:24:F9:BF:D6:66:76:1B:26:80:73:FE:06:D1:CC:8D:4F:82:A4
  Self-signed
Local root certificates:
- Subject: C=US O=DigiCert Inc OU=www.digicert.com CN=DigiCert Global Root G2 (OS)
  Validity: Aug  1 12:00:00 2013 GMT - Jan 15 12:00:00 2038 GMT
  Fingerprint: DF:3C:24:F9:BF:D6:66:76:1B:26:80:73:FE:06:D1:CC:8D:4F:82:A4
  Issuer: C=US O=DigiCert Inc OU=www.digicert.com CN=DigiCert Global Root G2
Sending GET request to https://api.githubcopilot.com...
vscode-proxy-agent: DIRECT
Received response:
- Status: 404 Not Found
Certificate chain:
- Subject: *.githubcopilot.com (GitHub, Inc.)
  Subject alt: DNS:*.githubcopilot.com, DNS:githubcopilot.com
  Validity: Aug 16 00:00:00 2023 GMT - Aug 16 23:59:59 2024 GMT
  Fingerprint: 54:59:1F:F1:6B:26:2F:B0:BC:68:70:BE:9F:E9:06:B3:37:7A:8A:9D
- Subject: DigiCert Global G2 TLS RSA SHA256 2020 CA1 (DigiCert Inc)
  Validity: Mar 30 00:00:00 2021 GMT - Mar 29 23:59:59 2031 GMT
  Fingerprint: 1B:51:1A:BE:AD:59:C6:CE:20:70:77:C0:BF:0E:00:43:B1:38:26:12
- Subject: DigiCert Global Root G2 (DigiCert Inc)
  Validity: Aug  1 12:00:00 2013 GMT - Jan 15 12:00:00 2038 GMT
  Fingerprint: DF:3C:24:F9:BF:D6:66:76:1B:26:80:73:FE:06:D1:CC:8D:4F:82:A4
  Self-signed
Local root certificates:
- Subject: C=US O=DigiCert Inc OU=www.digicert.com CN=DigiCert Global Root G2 (OS)
  Validity: Aug  1 12:00:00 2013 GMT - Jan 15 12:00:00 2038 GMT
  Fingerprint: DF:3C:24:F9:BF:D6:66:76:1B:26:80:73:FE:06:D1:CC:8D:4F:82:A4
  Issuer: C=US O=DigiCert Inc OU=www.digicert.com CN=DigiCert Global Root G2
chrmarti commented 2 months ago

@itsalljustdata That looks different. Could you open a new issue? Thanks.

8Klaro8 commented 2 months ago

The error in this case is ECONNRESET unlike before where it was "self-signed certificate in certificate chain".

Are you behind a firewall that might need to allow-list api.githubcopilot.com?

Yes.

chrmarti commented 2 months ago

Make sure you get all the required hosts allow-listed: https://docs.github.com/en/copilot/troubleshooting-github-copilot/troubleshooting-firewall-settings-for-github-copilot. HTH!