@jeffreycao/copilot-api 2.2.9 → 2.2.10

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.
package/dist/main.js CHANGED
@@ -30,7 +30,7 @@ if (isMcpFastPath(process.argv)) {
30
30
  const { auth } = await import("./auth-C-RWNXGU.js");
31
31
  const { debug } = await import("./debug-41w6Whae.js");
32
32
  const { mcp } = await import("./mcp-fpSlKZxK.js");
33
- const { start } = await import("./start-BwRZWHAE.js");
33
+ const { start } = await import("./start-tknmnmUA.js");
34
34
  await runMain(defineCommand({
35
35
  meta: {
36
36
  name: "copilot-api",
@@ -2858,6 +2858,7 @@ const applyDashScopePreserveThinkingDefault = (payload, providerConfig) => {
2858
2858
  if (!Object.hasOwn(payload, "preserve_thinking")) payload.preserve_thinking = true;
2859
2859
  };
2860
2860
  const applyOpenAICompatibleContextCache = (payload) => {
2861
+ if (payload.model.includes("/")) return;
2861
2862
  const messageIndexes = selectContextCacheMessageIndexes(payload.messages);
2862
2863
  for (const messageIndex of messageIndexes) applyContextCacheControl(payload.messages[messageIndex]);
2863
2864
  };
@@ -10513,4 +10514,4 @@ server.route("/:provider/images", providerImageRoutes);
10513
10514
  //#endregion
10514
10515
  export { server };
10515
10516
 
10516
- //# sourceMappingURL=server-xe8QDEN1.js.map
10517
+ //# sourceMappingURL=server-DEEWMydw.js.map