Extension Lm Provider
Agent Buildingextension-lm-providerExtension Lm Provider is an Agent Skill for agent building published in the jqknono/coding-plans-for-copilot repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
改 VS Code 语言模型提供商、多协议请求/流解析、工具调用、thinking、models.dev 发现或 Commit Message。Use when: genericProvider, lmChatProviderAdapter, coding-plans.vendors, apiStyle, anthropic/openai 兼容。
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/jqknono/coding-plans-for-copilot/blob/HEAD/.github/skills/extension-lm-provider/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/extension-lm-provider, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
扩展 LM Provider 工作流
何时使用
- 修协议兼容、流式解析、工具 schema、采样参数(top_p/temperature/thinking)、模型发现或桌面冒烟失败。
阅读顺序
src/providers/lmChatProviderAdapter.ts— VS Code 边界src/providers/genericProvider.ts— 请求与模型生命周期src/providers/genericProviderProtocols.ts— 分协议解析src/config/configStore.ts— 设置归一化
专题文档(按需打开,勿整篇抄进 PR 说明)
- docs/anthropic-tool-schema-sanitization.md
- docs/deepseek-thinking-mode-roundtrip.md
- docs/top-p-zero-omit-request.md
- cases/ 中与当前 bug 同名的 md
校验
npm run typecheck && npm run lint
npm test
新行为优先补 src/test/runTest.ts 回归;涉及模型列表/可见性时确认 npm run test:desktop。