github / github/copilot-cli

support extra request params for byok model

未關閉
#3,448 2 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
area:configuration area:models
主要語言
Shell
星號
11.2k
分支
1.9k
平均合併
14 小時 16 分鐘
30 天內合併 PR
6

描述

### Describe the feature or problem you'd like to solve

some llm providers might require additional nonstandard request parameters for certain features or tweaks

### Proposed solution

env var `COPILOT_EXTRA_REQUEST_PARAMS='{"abc": "def"}'`
so `{"abc": "def"}` will be appended to the llm request body
similar features seems also exist in various other agent frameworks

### Example prompts or workflows

_No response_

### Additional context

_No response_

貢獻指南

開啟貢獻指南

研究方向

首先定位組合 LLM 要求本文的 BYOK 程式碼,並檢查環境變數的讀取方式。加入將 COPILOT_EXTRA_REQUEST_PARAMS 解析為 JSON 並將其值附加至要求本文的支援,然後驗證有此變數和沒有此變數時的要求。

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

評估

技術堆疊
shell
領域
backend-api-design, cli
Issue 類型
功能
難度
3/5
預估耗時
1-2 天
活躍度
冷清
描述清晰度
基本清楚
新手友好度
58/100

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

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