@dianshuv/copilot-api 0.11.2 → 0.11.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/main.mjs +6 -4
  2. package/package.json +1 -1
package/dist/main.mjs CHANGED
@@ -1348,7 +1348,7 @@ const patchClaude = defineCommand({
1348
1348
 
1349
1349
  //#endregion
1350
1350
  //#region package.json
1351
- var version = "0.11.2";
1351
+ var version = "0.11.3";
1352
1352
 
1353
1353
  //#endregion
1354
1354
  //#region src/lib/adaptive-rate-limiter.ts
@@ -7324,8 +7324,10 @@ function stripServerToolsFromPayload(tools) {
7324
7324
  }
7325
7325
  /**
7326
7326
  * Effective 1M context window. Two ways a request lands on this size:
7327
- * (a) base model id + context-1m-2025-08-07 beta header (e.g. claude-opus-4.8),
7328
- * (b) a distinct upstream "-1m-internal" model id (e.g. claude-opus-4.7-1m-internal).
7327
+ * (a) base model id + context-1m-2025-08-07 beta header (e.g. claude-opus-4.8,
7328
+ * claude-opus-4.7),
7329
+ * (b) a distinct upstream "-1m-internal" model id (a historical convention; no
7330
+ * model currently on Copilot uses it, but the resolver still probes for it).
7329
7331
  */
7330
7332
  const ONE_MILLION_CONTEXT_WINDOW_TOKENS = 1e6;
7331
7333
  /**
@@ -7677,7 +7679,7 @@ function translateModelName(model) {
7677
7679
  if (/^claude-sonnet-4-\d+$/.test(model)) return "claude-sonnet-4";
7678
7680
  if (model === "claude-opus-4-8-1m") return "claude-opus-4.8";
7679
7681
  if (model === "claude-opus-4-8") return "claude-opus-4.8";
7680
- if (model === "claude-opus-4-7-1m") return "claude-opus-4.7-1m-internal";
7682
+ if (model === "claude-opus-4-7-1m") return "claude-opus-4.7";
7681
7683
  if (/^claude-opus-4-7$/.test(model)) return "claude-opus-4.7";
7682
7684
  if (model === "claude-opus-4-6-1m") return "claude-opus-4.6-1m";
7683
7685
  if (/^claude-opus-4-6$/.test(model)) return "claude-opus-4.6";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dianshuv/copilot-api",
3
- "version": "0.11.2",
3
+ "version": "0.11.3",
4
4
  "description": "Turn GitHub Copilot into OpenAI/Anthropic API compatible server. Usable with Claude Code!",
5
5
  "author": "dianshuv",
6
6
  "type": "module",