@jeffreycao/copilot-api 1.14.3 → 1.14.5

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
@@ -25,7 +25,7 @@ bindElectronFetch();
25
25
  const { auth } = await import("./auth-DvJ8r_tN.js");
26
26
  const { debug } = await import("./debug-Bb5hamXX.js");
27
27
  const { mcp } = await import("./mcp-BseuqgHR.js");
28
- const { start } = await import("./start-CE0CJpAo.js");
28
+ const { start } = await import("./start-Beq7gtGI.js");
29
29
  await runMain(defineCommand({
30
30
  meta: {
31
31
  name: "copilot-api",
@@ -3610,7 +3610,7 @@ const translateAnthropicMessagesToResponsesPayload = (payload, subagentAgentId)
3610
3610
  reasoning: {
3611
3611
  effort: resolveReasoningEffort(payload),
3612
3612
  summary: "detailed",
3613
- context: "all_turns"
3613
+ context: isSupportAllTurns(payload) ? "all_turns" : "auto"
3614
3614
  },
3615
3615
  include: ["reasoning.encrypted_content"]
3616
3616
  };
@@ -4155,6 +4155,10 @@ const convertToolResultContent = (content) => {
4155
4155
  }
4156
4156
  return "";
4157
4157
  };
4158
+ const isSupportAllTurns = (payload) => {
4159
+ if (payload.model === "gpt-5.4" || payload.model === "gpt-5.4-mini" || payload.model === "gpt-5.5") return true;
4160
+ return isGpt56OrAbove(payload.model);
4161
+ };
4158
4162
  //#endregion
4159
4163
  //#region src/routes/messages/responses-stream-translation.ts
4160
4164
  const MAX_CONSECUTIVE_FUNCTION_CALL_WHITESPACE = 20;
@@ -6882,4 +6886,4 @@ server.route("/:provider/v1/models", providerModelRoutes);
6882
6886
  //#endregion
6883
6887
  export { server };
6884
6888
 
6885
- //# sourceMappingURL=server-erYoRK9y.js.map
6889
+ //# sourceMappingURL=server-CmynIOAW.js.map