beginor

VSCode 1.122.0 可以离线使用 BYOK

  •  
  •   beginor ·
    beginor · 6h 44m ago · 1720 views

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

    VSCode BYOK

    详细发布说明

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

    Supplement 1  ·  4h 13m 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 界面不能用, 那是另外一个应用了

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

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

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

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

    新的那个 agent ui 里还是不行吧?
    asd999cxcx
        11
    asd999cxcx  
       4h 34m ago
    @sentinelK apiType 选 chat 还是 responses?
    sentinelK
        12
    sentinelK  
       4h 32m ago
    @asd999cxcx 我选择的是 chat-completions ,不清楚他们的区别是什么
    wy315700
        13
    wy315700  
       4h 24m ago
    已经弃用 Copilot 了。
    beginor
        14
    beginor  
    OP
       4h 23m ago
    @jaoyina 试了一下,确实不行,这个感觉是另一个 app 了
    nativeBoy
        15
    nativeBoy  
       3h 58m 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  
       3h 58m ago
    v2ex 的回复框不支持 markdown 吗,,,
    sentinelK
        17
    sentinelK  
       3h 11m ago
    @nativeBoy deepseek 官方文档显示默认是开启思考,长度 high 。

    (1) 默认思考开关为 enabled
    (2) 思考模式下,对普通请求,默认 effort 为 high ;对一些复杂 Agent 类请求(如 Claude Code 、OpenCode ),effort 自动设置为 max
    (3) 思考模式下,出于兼容考虑 low 、medium 会映射为 high, xhigh 会映射为 max
    coderfee
        18
    coderfee  
       2h 52m ago
    @jaoyina New session 里选 Local ,就可选自己的模型了
    sentinelK
        19
    sentinelK  
       2h 48m ago
    @jaoyina agentUI 连 Copilot 自身都不可以。你可以理解为只是 Claude 和 Copilot Cli 的 UI 界面
    xiaoyaocz
        21
    xiaoyaocz  
       2h 11m ago
    @ted2011 reasoningEffort 这样设置,UI 里就可以选了 `"supportsReasoningEffort": ["low","medium","high","xhigh"]`
    holdeer
        22
    holdeer  
       1h 57m ago
    不错,方便多了
    cense
        23
    cense  
       1h 14m ago
    commit message 可以用吗
    lizhesystem
        24
    lizhesystem  
       1h 12m ago
    问下,大家自动补全现在基本用哪个模型好的?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3569 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 61ms · UTC 10:32 · PVG 18:32 · LAX 03:32 · JFK 06:32
    ♥ Do have faith in what you're doing.