@jeffreycao/copilot-api 1.14.11 → 1.14.12

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-BG6fpi6q.js");
28
- const { start } = await import("./start-VpMeTQaM.js");
28
+ const { start } = await import("./start-Dx9iXCno.js");
29
29
  await runMain(defineCommand({
30
30
  meta: {
31
31
  name: "copilot-api",
@@ -3198,7 +3198,7 @@ function isToolBlockOpen(state) {
3198
3198
  function translateChunkToAnthropicEvents(chunk, state) {
3199
3199
  const events = [];
3200
3200
  if (chunk.choices.length === 0) {
3201
- completePendingMessage(state, events, chunk);
3201
+ if (chunk.usage) completePendingMessage(state, events, chunk);
3202
3202
  return events;
3203
3203
  }
3204
3204
  const choice = chunk.choices[0];
@@ -7106,4 +7106,4 @@ server.route("/:provider/images", providerImageRoutes);
7106
7106
  //#endregion
7107
7107
  export { server };
7108
7108
 
7109
- //# sourceMappingURL=server-B8NyALXc.js.map
7109
+ //# sourceMappingURL=server-DOzOrcZ9.js.map