diff --git a/package.json b/package.json index d09c85e..b6329c5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ztimson/ai-utils", - "version": "0.8.12", + "version": "0.8.13", "description": "AI Utility library", "author": "Zak Timson", "license": "MIT", diff --git a/src/llm.ts b/src/llm.ts index 81d03f9..3a80664 100644 --- a/src/llm.ts +++ b/src/llm.ts @@ -358,7 +358,7 @@ class LLM { * @returns {Promise<{} | {} | RegExpExecArray | null>} */ async json(text: string, schema: string, options?: LLMRequest): Promise { - let system = `Your job is to convert input to JSON. Call \`submit\` exactly once with JSON matching this schema:\n\`\`\`json\n${schema}\n\`\`\``; + let system = `Your job is to convert input to JSON. Call the \`submit\` tool exactly once with JSON matching this schema:\n\`\`\`json\n${schema}\n\`\`\``; if(options?.system) system += '\n\n' + options.system; return new Promise(async (resolve, reject) => { let done = false; @@ -392,7 +392,7 @@ class LLM { * @returns {Promise} Summary */ async summarize(text: string, tokens: number = 500, options?: LLMRequest): Promise { - let system = `Your job is to summarize the users message. Call \`submit\` exactly once with the shortest summary possible that's <= ${tokens} tokens. Output nothing else`; + let system = `Your job is to summarize the users message. Call the \`submit\` tool exactly once with the shortest summary possible that's <= ${tokens} tokens. Output nothing else`; if(options?.system) system += '\n\n' + options.system; return new Promise(async (resolve, reject) => { let done = false; @@ -403,7 +403,7 @@ class LLM { tools: [{ name: 'submit', description: 'Submit summary', - args: {summary: {type: 'string', description: 'Summarization', required: true}}, + args: {summary: {type: 'string', description: 'Text summarization', required: true}}, fn: (args) => { done = true; resolve(args.summary || null);