docs(github-copilot): note live catalog refresh + discovery opt-out · openclaw/openclaw@ed2a179
efpiva
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -102,6 +102,35 @@ back to `COPILOT_GITHUB_TOKEN`, `GH_TOKEN`, then `GITHUB_TOKEN`. Use
|
102 | 102 | rejected, try another ID (for example `github-copilot/gpt-4.1`). |
103 | 103 | </Accordion> |
104 | 104 | |
| 105 | +<Accordion title="Live catalog refresh from the Copilot API"> |
| 106 | +Once the device-login (or env-var) auth path has resolved a GitHub token, |
| 107 | +OpenClaw refreshes the model catalog on demand from `${baseUrl}/models` |
| 108 | +(the same endpoint VS Code Copilot uses) so the runtime tracks |
| 109 | +per-account entitlement and accurate context windows without manifest |
| 110 | +churn. Newly published Copilot models become visible without an OpenClaw |
| 111 | +upgrade, and context windows reflect the real per-model limits |
| 112 | +(e.g. 400k for the gpt-5.x series, 1M for the internal |
| 113 | +`claude-opus-*-1m` variants). |
| 114 | + |
| 115 | +The bundled static catalog stays as the visible fallback when discovery |
| 116 | +is disabled, the user has no GitHub auth profile, the token-exchange |
| 117 | +fails, or the `/models` HTTPS call errors. To opt out and rely entirely |
| 118 | +on the static manifest catalog (offline / air-gapped scenarios): |
| 119 | + |
| 120 | +```json5 |
| 121 | +{ |
| 122 | + plugins: { |
| 123 | + entries: { |
| 124 | + "github-copilot": { |
| 125 | + config: { discovery: { enabled: false } }, |
| 126 | + }, |
| 127 | + }, |
| 128 | + }, |
| 129 | +} |
| 130 | +``` |
| 131 | + |
| 132 | +</Accordion> |
| 133 | + |
105 | 134 | <Accordion title="Transport selection"> |
106 | 135 | Claude model IDs use the Anthropic Messages transport automatically. GPT, |
107 | 136 | o-series, and Gemini models keep the OpenAI Responses transport. OpenClaw |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。