@dianshuv/copilot-api 0.7.8 → 0.7.9

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 +4 -4
  2. package/package.json +1 -1
package/dist/main.mjs CHANGED
@@ -1213,7 +1213,7 @@ const patchClaude = defineCommand({
1213
1213
 
1214
1214
  //#endregion
1215
1215
  //#region package.json
1216
- var version = "0.7.8";
1216
+ var version = "0.7.9";
1217
1217
 
1218
1218
  //#endregion
1219
1219
  //#region src/lib/adaptive-rate-limiter.ts
@@ -4713,10 +4713,10 @@ function handleNonStreamResponse(c, response, model, ctx, payload) {
4713
4713
  * the Copilot model list, so if Copilot adds native support the request
4714
4714
  * goes through unchanged.
4715
4715
  */
4716
- const GEMINI_FORCED_ALIASES = { "gemini-2.5-pro": "gemini-3.1-pro-preview" };
4716
+ const GEMINI_FORCED_ALIASES = { "gemini-3.1-pro-preview-customtools": "gemini-3.1-pro-preview" };
4717
4717
  const GEMINI_CONDITIONAL_ALIASES = {
4718
- "gemini-2.5-flash-lite": "gemini-3-flash-preview",
4719
- "gemini-2.5-flash": "gemini-3-flash-preview"
4718
+ "gemini-2.5-flash-lite": "gemini-3.5-flash",
4719
+ "gemini-2.5-flash": "gemini-3.5-flash"
4720
4720
  };
4721
4721
  function resolveGeminiModelAlias(model) {
4722
4722
  if (model in GEMINI_FORCED_ALIASES) return GEMINI_FORCED_ALIASES[model];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dianshuv/copilot-api",
3
- "version": "0.7.8",
3
+ "version": "0.7.9",
4
4
  "description": "Turn GitHub Copilot into OpenAI/Anthropic API compatible server. Usable with Claude Code!",
5
5
  "author": "dianshuv",
6
6
  "type": "module",