@jeffreycao/copilot-api 2.7.9 → 2.7.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-BzYvzeW0.js");
31
31
  const { debug } = await import("./debug-CmL-V7Ov.js");
32
32
  const { mcp } = await import("./mcp-Dd_hxxuG.js");
33
- const { start } = await import("./start-Zh1mijTN.js");
33
+ const { start } = await import("./start-DAQ6_2QN.js");
34
34
  const { provider } = await import("./provider-CzziTLqX.js");
35
35
  await runMain(defineCommand({
36
36
  meta: {
@@ -4767,9 +4767,10 @@ const normalizeClaudeCodeBillingHeaderInSystem = (payload) => {
4767
4767
  text: normalizeClaudeCodeBillingHeader(block.text)
4768
4768
  } : block);
4769
4769
  };
4770
+ const supportsMidSystemMessages = (model) => model.startsWith("gpt") || model.startsWith("codex") || model.startsWith("claude");
4770
4771
  const normalizeSystemMessages = (payload) => {
4771
4772
  normalizeClaudeCodeBillingHeaderInSystem(payload);
4772
- if (payload.model.startsWith("gpt") || payload.model.startsWith("codex")) return;
4773
+ if (supportsMidSystemMessages(payload.model)) return;
4773
4774
  if (!payload.messages.some((msg) => msg.role === "system")) return;
4774
4775
  const normalizedMessages = [];
4775
4776
  let system = payload.system;
@@ -13371,4 +13372,4 @@ createServer();
13371
13372
  //#endregion
13372
13373
  export { createServer };
13373
13374
 
13374
- //# sourceMappingURL=server-HJmO_wDI.js.map
13375
+ //# sourceMappingURL=server-1fLM5e0J.js.map