override chat无法使用,各位巨佬帮忙看看

代码补全能用,chat会卡住。

image

image

vscode 查看 GitHub Copilot chat 的完整输出

2024-11-01 11:48:21.817 [info] Using the Electron fetcher.
2024-11-01 11:48:21.817 [info] Initializing Git extension service.
2024-11-01 11:48:22.150 [info] Successfully activated the vscode.git extension.
2024-11-01 11:48:22.150 [info] Enablement state of the vscode.git extension: true.
2024-11-01 11:48:22.150 [info] Successfully registered Git commit message provider.
2024-11-01 11:48:22.532 [info] Logged in as u5R5kwMyXL6Q
2024-11-01 11:48:23.499 [info] Got Copilot token for u5R5kwMyXL6Q
2024-11-01 11:48:23.922 [info] Fetched model metadata in 422ms d951a8e0-ed98-4d07-b2e5-e42934a7ea4e
2024-11-01 11:48:24.656 [info] activationBlocker from 'languageModelAccess' took for 2878ms
2024-11-01 11:48:25.162 [info] copilot token chat_enabled: true, sku: trial_30_monthly_subscriber
2024-11-01 11:48:25.162 [info] GitHub.vscode-pull-request-github extension is not yet activated.
2024-11-01 11:48:25.175 [info] Registering default platform agent...
2024-11-01 11:48:25.262 [warning] Invalid remote agent response: 404 page not found (SyntaxError: Unexpected non-whitespace character after JSON at position 4 (line 1 column 5))
2024-11-01 12:03:24.574 [info] Fetched model metadata in 18ms abd5fe90-fa5a-4cbd-9453-e6f65d67dde0
2024-11-01 12:13:23.280 [info] Logged in as u5R5kwMyXL6Q
2024-11-01 12:13:24.609 [info] Got Copilot token for u5R5kwMyXL6Q
2024-11-01 12:13:24.618 [info] copilot token chat_enabled: true, sku: trial_30_monthly_subscriber
2024-11-01 12:13:24.646 [info] Fetched model metadata in 25ms 7a3dadc5-9fcb-4fe3-ab53-77fc9a2c9d8d
2024-11-01 12:28:24.529 [info] Fetched model metadata in 17ms 1095b5d2-d4f2-4211-9d58-381dd98b1c2c
2024-11-01 12:38:24.405 [info] Logged in as u5R5kwMyXL6Q
2024-11-01 12:38:25.306 [info] Got Copilot token for u5R5kwMyXL6Q
2024-11-01 12:38:25.319 [info] copilot token chat_enabled: true, sku: trial_30_monthly_subscriber
2024-11-01 12:38:25.354 [info] Fetched model metadata in 28ms bdc9767f-d495-450b-a775-8bb3ddb533a9
2024-11-01 12:48:25.443 [info] Fetched model metadata in 51ms ef9898d8-6c0f-4b33-83a4-53865e9adb7a

1 个赞

贴一下你的配置文件,检查下模型名,好像还要api支持chat

vscode配置文件

"github.copilot.advanced": {
        "debug.overrideProxyUrl": "http://192.168.50.211:8181",
        "debug.overrideCAPIUrl": "http://192.168.50.211:8181/v1",
        "debug.chatOverrideProxyUrl": "http://192.168.50.211:8181/v1/chat/completions",
        "authProvider": "github-enterprise",
    },
    "github-enterprise.uri": "https://cocopilot.org",

override 配置文件

{
    "bind": "0.0.0.0:8181",
    "proxy_url": "",
    "timeout": 600,
    "codex_api_base": "https://api.deepseek.com/beta/v1",
    "codex_api_key": "sk-",
    "codex_api_organization": "",
    "codex_api_project": "",
    "codex_max_tokens": 500,
    "code_instruct_model": "deepseek-coder",
    "chat_api_base": "https://api.deepseek.com/beta/v1",
    "chat_api_key": "sk-",
    "chat_api_organization": "",
    "chat_api_project": "",
    "chat_max_tokens": 4096,
    "chat_model_default": "deepseek-coder",
    "chat_model_map": {},
    "chat_locale": "zh_CN",
    "auth_token": ""
}

通过docker compose log 查看 vscode在使用chat功能的时候 override服务就没收到请求

override-app  | Code completion API Key index: 0
override-app  | Code completion API Key: sk-
override-app  | [GIN] 2024/11/01 - 03:49:53 | 408 |  200.928487ms |  192.168.50.210 | POST     "/v1/engines/copilot-codex/completions"
override-app  | Code completion API Key index: 0
override-app  | Code completion API Key: sk-
override-app  | [GIN] 2024/11/01 - 03:49:54 | 408 |  232.672022ms |  192.168.50.210 | POST     "/v1/engines/copilot-codex/completions"
override-app  | Code completion API Key index: 0
override-app  | Code completion API Key: sk-
override-app  | [GIN] 2024/11/01 - 03:49:54 | 408 |   201.33327ms |  192.168.50.210 | POST     "/v1/engines/copilot-codex/completions"
override-app  | Code completion API Key index: 0
override-app  | Code completion API Key: sk-
override-app  | [GIN] 2024/11/01 - 03:49:54 | 408 |  201.590273ms |  192.168.50.210 | POST     "/v1/engines/copilot-codex/completions"
override-app  | Code completion API Key index: 0
override-app  | Code completion API Key: sk-
override-app  | [GIN] 2024/11/01 - 03:49:55 | 408 |   345.23511ms |  192.168.50.210 | POST     "/v1/engines/copilot-codex/completions"
override-app  | Code completion API Key index: 0
override-app  | Code completion API Key: sk-
override-app  | [GIN] 2024/11/01 - 03:49:57 | 200 |  1.137340998s |  192.168.50.210 | POST     "/v1/engines/copilot-codex/completions"
override-app  | [GIN] 2024/11/01 - 04:03:23 | 200 |     463.844µs |  192.168.50.210 | GET      "/v1/models"
override-app  | [GIN] 2024/11/01 - 04:13:24 | 200 |     468.592µs |  192.168.50.210 | GET      "/v1/models"
override-app  | [GIN] 2024/11/01 - 04:28:24 | 200 |     462.014µs |  192.168.50.210 | GET      "/v1/models"
override-app  | [GIN] 2024/11/01 - 04:38:24 | 200 |     458.503µs |  192.168.50.210 | GET      "/v1/models"
override-app  | [GIN] 2024/11/01 - 04:48:25 | 200 |     455.696µs |  192.168.50.210 | GET      "/v1/models"

不懂了,比对了一下配置,跟我一样。
在问一下,你的override是怎么部署的? docker还是佬哥的gui

docker 部署,你的chat 正常使用吗,我以为是chat插件版本更新,需要修改配置。

正常。
你插件版本多少吗?插件版本也有要求,好像最高支持到v1.221.0,具体你可以搜一下看看

vscodechat的日志,你参考看看

感谢大佬 :pray:

您能不能帮我看下,您的 http://ip/v1/agents,这个路径能访问吗,

我的vscode 有个报警,后续操作就没反应了。

http://ip/v1/agents访问404
看了看override代码,也没这个路由啊,看着只有下面这些路由:

你看看插件版本号吧,是不是版本的问题

参考佬哥的帖子看看吧

1 个赞

image

我Copilot chat 没有这个版本,把vscode回退到1.94.2 解决了,感谢:pray:

那个版本应该是支持的最高版本,在这之前的版本理论上都行。
回退vscode这个没想到,总之解决了就行tieba_013

1 个赞