support extra request params for byok model
未关闭
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