@jeffreycao/copilot-api 2.1.14 → 2.2.0

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-PIo0IPSc.js");
26
26
  const { debug } = await import("./debug-ChC85ySp.js");
27
27
  const { mcp } = await import("./mcp-BG6fpi6q.js");
28
- const { start } = await import("./start-DJ0bC7lh.js");
28
+ const { start } = await import("./start-BL3AiN3r.js");
29
29
  await runMain(defineCommand({
30
30
  meta: {
31
31
  name: "copilot-api",
@@ -3513,7 +3513,7 @@ function translateToOpenAI(payload, options = {}) {
3513
3513
  supportPdf: options.supportPdf ?? false,
3514
3514
  toolContentSupportType: options.toolContentSupportType ?? COPILOT_TOOL_CONTENT_SUPPORT_TYPE
3515
3515
  }),
3516
- max_tokens: payload.max_tokens,
3516
+ max_completion_tokens: payload.max_tokens,
3517
3517
  stop: payload.stop_sequences,
3518
3518
  stream: payload.stream,
3519
3519
  temperature: payload.temperature,
@@ -10526,4 +10526,4 @@ server.route("/:provider/images", providerImageRoutes);
10526
10526
  //#endregion
10527
10527
  export { server };
10528
10528
 
10529
- //# sourceMappingURL=server-C3ZboG5a.js.map
10529
+ //# sourceMappingURL=server-DN95QRWA.js.map