OpenParable
Skip to content
← Back to skills

Extension Lm Provider

Agent Building
extension-lm-provider

Extension 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 兼容。

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. 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)、模型发现或桌面冒烟失败。

阅读顺序

  1. src/providers/lmChatProviderAdapter.ts — VS Code 边界
  2. src/providers/genericProvider.ts — 请求与模型生命周期
  3. src/providers/genericProviderProtocols.ts — 分协议解析
  4. src/config/configStore.ts — 设置归一化

专题文档(按需打开,勿整篇抄进 PR 说明)

校验

npm run typecheck && npm run lint
npm test

新行为优先补 src/test/runTest.ts 回归;涉及模型列表/可见性时确认 npm run test:desktop。