@jeffreycao/copilot-api 1.9.7 → 1.9.8

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/README.md CHANGED
@@ -328,7 +328,7 @@ The following command line options are available for the `start` command:
328
328
  "glm-5.1": {
329
329
  "temperature": 0.7,
330
330
  "topP": 0.95,
331
- "contextCache": false,
331
+ "contextCache": true,
332
332
  "extraBody": {
333
333
  "preserve_thinking": true
334
334
  }
package/README.zh-CN.md CHANGED
@@ -332,7 +332,7 @@ Copilot API 现在使用子命令结构,主要命令包括:
332
332
  "glm-5.1": {
333
333
  "temperature": 0.7,
334
334
  "topP": 0.95,
335
- "contextCache": false,
335
+ "contextCache": true,
336
336
  "extraBody": {
337
337
  "preserve_thinking": true
338
338
  }
package/dist/main.js CHANGED
@@ -44,7 +44,7 @@ bindElectronFetch();
44
44
  const { auth } = await import("./auth-CWEhhJYn.js");
45
45
  const { checkUsage } = await import("./check-usage-B5yr4fpk.js");
46
46
  const { debug } = await import("./debug-DcC7ZPH0.js");
47
- const { start } = await import("./start-BgL68ZLT.js");
47
+ const { start } = await import("./start-BCBe4icv.js");
48
48
  const main = defineCommand({
49
49
  meta: {
50
50
  name: "copilot-api",
@@ -1496,6 +1496,7 @@ function mapContent(content, options = {}) {
1496
1496
  });
1497
1497
  break;
1498
1498
  }
1499
+ if (contentParts.length === 0) return null;
1499
1500
  return contentParts;
1500
1501
  }
1501
1502
  function createDocumentTextPart() {
@@ -4309,4 +4310,4 @@ server.route("/:provider/v1/models", providerModelRoutes);
4309
4310
 
4310
4311
  //#endregion
4311
4312
  export { server };
4312
- //# sourceMappingURL=server-Bpu_LXg5.js.map
4313
+ //# sourceMappingURL=server-D4FT8suK.js.map