beginor

VSCode 1.122.0 可以离线使用 BYOK

  •  
  •   beginor ·
    beginor · 13h 22m ago · 2377 views

    今天 VSCode 更新到 1.122.0 , 发现可以直接填自己的模型了,不需要第三方插件,也不需要登录账户可以离线使用, 这个功能期待好久了!

    VSCode BYOK

    详细发布说明

    https://code.visualstudio.com/updates/v1_122#_may-21-2026

    Supplement 1  ·  10h 51m ago

    配置其实很简单,apiType 选择 chat-completionsmessages 都可以

    [
      {
        "name": "local llm",
        "vendor": "customendpoint",
        "apiKey": "${input:chat.lm.secret.73dedf8d}",
        "models": [
          {
            "id": "qwen3-coder-next",
            "name": "Qwen3 Coder Next",
            "url": "http://127.0.0.1:20800/v1/chat/completions",
            "apiType": "chat-completions",
            "toolCalling": true,
            "vision": false,
            "maxInputTokens": 128000,
            "maxOutputTokens": 16000,
            "thinking": false
          },
          {
            "id": "qwen3.6-27b",
            "name": "Qwen3.6 27B",
            "url": "http://127.0.0.1:20800/v1/messages",
            "apiType": "messages",
            "toolCalling": true,
            "vision": true,
            "maxInputTokens": 128000,
            "maxOutputTokens": 16000,
            "thinking": false
          }
        ]
      }
    ]
    

    新版本的 agent 界面不能用, 那是另外一个应用了

    28 replies    2026-05-29 00:41:16 +08:00
    dbskcnc
        1
    dbskcnc  
       13h 18m ago
    一直用 gcmp ( https://github.com/VicBilibily/GCMP ),目前还算正常,如果内置了就更好了
    sentinelK
        2
    sentinelK  
       13h 6m ago
    终于开放了,作为一个被 Github Copilot 频繁改政策逼走的年费用户,可以说百感交集。

    测试了一下。启动的上下文有点大(问一个你是谁直接 50K )
    暂时用几天看看和 Claude Code Desktop 相比的体验如何。
    wsseo
        3
    wsseo  
       13h 6m ago
    怎么配置?
    sentinelK
        4
    sentinelK  
       12h 57m ago
    @wsseo 模型设置,添加模型,多了一个选项 custom endpoint
    a33291
        5
    a33291  
       12h 53m ago
    不知道 git 的 ai commit message 生成是不是也是走这里设置的模型?
    bitmin
        6
    bitmin  
       12h 47m ago
    之前也一直用 gcmp ,现在直接配置更方便了,试了一下配置很简单

    打开 chat 窗口,点击编辑框底部的模型名称,默认是 Auto ,点击后展开模型列表,点击列表右上角设置按钮,弹出 Language Models 窗口,点击 Add Models ,在出现的列表中选择最下面的 Custom Endpoint ,先输入分组名称再输入 api key ,最后在编辑框内补充模型信息。完成后就可在 chat 窗口中切换到自定义模型了
    imzcc
        7
    imzcc  
       12h 5m ago
    之前使用 Azure 也是可以配置自定义 API 的
    ted2011
        8
    ted2011  
       11h 58m ago
    apiType 配置什么? reasoningEffort 配置似乎也有点问题? 试了半天没成功。
    要么就说 reasoningEffort 问题,要么就说 toolCalling 问题。

    有没有人用中转 openai api 的,给个 GPT 5.4 JSON 示例? 谢谢!
    archxm
        9
    archxm  
       11h 24m ago
    最近某 2 个 vscode 版本,好像会闪退,上周我发现了,然后就回退了几个版本。
    jaoyina
        10
    jaoyina  
       11h 22m ago
    @beginor

    新的那个 agent ui 里还是不行吧?
    asd999cxcx
        11
    asd999cxcx  
       11h 11m ago
    @sentinelK apiType 选 chat 还是 responses?
    sentinelK
        12
    sentinelK  
       11h 10m ago
    @asd999cxcx 我选择的是 chat-completions ,不清楚他们的区别是什么
    wy315700
        13
    wy315700  
       11h 2m ago
    已经弃用 Copilot 了。
    beginor
        14
    beginor  
    OP
       11h 0m ago
    @jaoyina 试了一下,确实不行,这个感觉是另一个 app 了
    nativeBoy
        15
    nativeBoy  
       10h 36m ago
    deepseek 不能开启思考哈,开了没用,有点不兼容参数


    ```
    [
    {
    "name": "deepseek",
    "vendor": "customendpoint",
    "apiKey": "${input:chat.lm.secret.-7d39a19e}",
    "apiType": "chat-completions",
    "models": [
    {
    "id": "deepseek-v4-pro",
    "name": "deepseek-v4-pro",
    "url": "https://api.deepseek.com",
    "toolCalling": true,
    "vision": false,
    "maxInputTokens": 128000,
    "maxOutputTokens": 16000,
    "thinking": true,
    "supportsReasoningEffort": [
    "high",
    "max"
    ],
    "streaming": true
    }
    ],
    "settings": {
    "deepseek-v4-pro": {
    "reasoningEffort": "max"
    }
    }
    }
    ]
    ```
    nativeBoy
        16
    nativeBoy  
       10h 35m ago
    v2ex 的回复框不支持 markdown 吗,,,
    sentinelK
        17
    sentinelK  
       9h 48m ago
    @nativeBoy deepseek 官方文档显示默认是开启思考,长度 high 。

    (1) 默认思考开关为 enabled
    (2) 思考模式下,对普通请求,默认 effort 为 high ;对一些复杂 Agent 类请求(如 Claude Code 、OpenCode ),effort 自动设置为 max
    (3) 思考模式下,出于兼容考虑 low 、medium 会映射为 high, xhigh 会映射为 max
    coderfee
        18
    coderfee  
       9h 29m ago
    @jaoyina New session 里选 Local ,就可选自己的模型了
    sentinelK
        19
    sentinelK  
       9h 26m ago
    @jaoyina agentUI 连 Copilot 自身都不可以。你可以理解为只是 Claude 和 Copilot Cli 的 UI 界面
    xiaoyaocz
        21
    xiaoyaocz  
       8h 49m ago
    @ted2011 reasoningEffort 这样设置,UI 里就可以选了 `"supportsReasoningEffort": ["low","medium","high","xhigh"]`
    holdeer
        22
    holdeer  
       8h 34m ago
    不错,方便多了
    cense
        23
    cense  
       7h 51m ago
    commit message 可以用吗
    lizhesystem
        24
    lizhesystem  
       7h 49m ago
    问下,大家自动补全现在基本用哪个模型好的?
    ted2011
        25
    ted2011  
       5h 33m ago
    @xiaoyaocz 谢谢啊,仔细研究了下,我的好像是中转问题
    craftsmanship
        26
    craftsmanship  
       5h 24m ago via Android
    虽然但是 如果没有原来的 copilot 按次计费套餐 我为啥要用它呢
    TerranC
        28
    TerranC  
       28 mins ago
    先开启 ccx 转一下,把该配的配好,然后再在 vscode 里配,就避免了各种配置不够配的问题
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1348 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 63ms · UTC 17:10 · PVG 01:10 · LAX 10:10 · JFK 13:10
    ♥ Do have faith in what you're doing.