@nickyzj2023/ai 1.4.3 → 1.4.4

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/cli.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { a as get_time_default, c as runAgent, i as get_weather_default, o as defineModel, r as loadMCPTools } from "./src-ZdmhdFxU.mjs";
1
+ import { a as get_time_default, c as runAgent, i as get_weather_default, o as defineModel, r as loadMCPTools } from "./src-CuZ-6Jye.mjs";
2
2
  import { compactStr, extractErrorMessage, isObject } from "@nickyzj2023/utils";
3
3
  import readline from "node:readline";
4
4
  import { mkdirSync, readFileSync, writeFileSync } from "node:fs";
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { a as get_time_default, c as runAgent, i as get_weather_default, n as MCPRouter, o as defineModel, r as loadMCPTools, s as defineTool, t as compact } from "./src-ZdmhdFxU.mjs";
1
+ import { a as get_time_default, c as runAgent, i as get_weather_default, n as MCPRouter, o as defineModel, r as loadMCPTools, s as defineTool, t as compact } from "./src-CuZ-6Jye.mjs";
2
2
  export { MCPRouter, compact, defineModel, defineTool, get_time_default as getTime, get_weather_default as getWeather, loadMCPTools, runAgent };
@@ -327,7 +327,7 @@ const defaultReplacerOfToolResultContent = async (content, options) => {
327
327
  content
328
328
  }, {
329
329
  role: "user",
330
- content: "请用一两句话简述上条消息"
330
+ content: "请用一句话简述上面这条消息(直击要点,不要添加任何前言后语)"
331
331
  }];
332
332
  let simplifiedContent = "";
333
333
  for await (const e of runAgent(model, messages, [])) if (e.type === "content_delta") simplifiedContent += e.delta;
@@ -358,7 +358,7 @@ const defaultReplacerOfMediaContent = async (content, options) => {
358
358
  content
359
359
  }, {
360
360
  role: "user",
361
- content: "请用一两句话简述上方的多模态消息"
361
+ content: "请用一句话简述上面这条消息(直击要点,不要添加任何前言后语)"
362
362
  }];
363
363
  let simplifiedContent = "";
364
364
  for await (const e of runAgent(model, messages, [])) if (e.type === "content_delta") simplifiedContent += e.delta;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nickyzj2023/ai",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "description": "我的“pi”,参考了pi-from-scratch",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",