Copilot Fusion never routes to a local OpenAI-compatible server (vLLM) configured in providers.json

未關閉
#5,581 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
50/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
python
領域
ai, backend

研究方向

Start by tracing how Fusion Standard builds its candidate models and how it handles manually configured models in providers.json with an OpenAI-compatible baseUrl. Compare that path with the working direct model selection and the local llama-server route. Done means Fusion includes qwen3.8-flash-next-local as a candidate and suitable turns reach the vLLM server.

由索引模型根據 Issue 內容生成。

描述

area:models
Describe the bug

I run Qwen3.8 Flash Next with vLLM on the same machine as Copilot CLI and added it to providers.json as qwen3.8-flash-next-local. Selecting it directly works. However, Copilot Fusion Standard never considers it and every Fusion turn goes to a cloud model.

The Oct 28 changelog says Copilot CLI's local Fusion routing works with manually configured models on Linux, including Qwen3.8 Flash Next through a local OpenAI-compatible server. The Copilot Fusion docs say Fusion Standard can use this model when Copilot identifies it as qwen3.8-flash-next-local.

It should be noted that local routing appears to work on this machine, because when the same ID qwen3.8-flash-next-local is used with a GGUF model that the CLI runs itself through llama-server, Fusion appears to route to it.

Affected version

GitHub Copilot CLI 1.0.117-0

Steps to reproduce the behavior
  1. Serve Qwen3.8 Flash Next with vLLM at http://127.0.0.1:8000/v1.

  2. Create providers.json:

    {
      "providers": [
        { "name": "local-vllm", "type": "openai", "baseUrl": "http://127.0.0.1:8000/v1" }
      ],
      "models": [
        {
          "provider": "local-vllm",
          "id": "qwen3.8-flash-next-local",
          "wireModel": "nvidia/Qwen3.8-Flash-Next-FP4-Local",
          "maxContextWindowTokens": 262144,
          "autoLocal": { "capiId": "qwen3.8-flash-next-local", "maxConcurrent": 1 }
        }
      ]
    }
    
  3. Start the CLI with local routing enabled:

    COPILOT_PROVIDERS_CONFIG=/path/to/providers.json \
    COPILOT_CLI_ENABLED_FEATURE_FLAGS=AUTO_LOCAL_ROUTING,LOCAL_MODELS \
    copilot --experimental
    
  4. Open /model, select Copilot Fusion -> Standard, and send a few simple prompts, for example What is 1 + 2?.

The outcome is that every turn goes to a cloud model. For example, session.auto_mode_resolved contains:

{ "chosenModel": "mai-code-2-flash", "availableModels": ["mai-code-2-flash"], "candidateModels": ["mai-code-2-flash"], "fallback": false }
Expected behavior

Fusion Standard offers qwen3.8-flash-next-local as a candidate and routes suitable turns to the vLLM server.

Additional context

I tried several different configurations, but in all cases, Fusion routed all turns to the cloud:

Configuration
Config above ("type": "openai" with autoLocal)
"type": "local_model" with the same HTTP baseUrl and autoLocal
Same, plus autoLocal under metadata and "modelProvider": "llama_cpp"
Model selected directly for one turn, then switched to Fusion Standard in the same session

Selecting the model directly works: copilot --model local-vllm/qwen3.8-flash-next-local -p "What is 1 + 2?" answers 3, and vLLM's request counter increases by one.

Fusion Standard local routing also appears to work when using a GGUF model that the CLI runs itself with llama-server ("type": "local_model" with baseUrl pointing at the .gguf file), using the same qwen3.8-flash-next-local ID.

主要語言
Python
星號
11.5k
分支
2k
平均合併
6 小時 34 分鐘
30 天內合併 PR
3

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

github/copilot-cli 的其他 Issue

查看 github/copilot-cli 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。