Compare commits

..

1 Commits

Author SHA1 Message Date
d53b1c6328 Removed <tool> blocks from responses
All checks were successful
Publish Library / Build NPM Project (push) Successful in 39s
Publish Library / Tag Version (push) Successful in 11s
2026-08-03 20:23:22 -04:00
3 changed files with 1 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@ztimson/ai-utils",
"version": "1.3.3",
"version": "1.3.4",
"description": "AI Utility library",
"author": "Zak Timson",
"license": "MIT",

View File

@@ -158,7 +158,6 @@ export class Anthropic extends LLMProvider {
const turnStart = history.map(h => h.role).lastIndexOf('user');
const finalContent = history.slice(turnStart + 1).reduce((str, h) => {
if(h.role === 'assistant') return str + (h.content || '');
if(h.role === 'tool') return str + `<tool>${h.name}</tool>\n\n`;
return str;
}, '').trim();

View File

@@ -190,7 +190,6 @@ export class OpenAi extends LLMProvider {
const turnStart = history.map(h => h.role).lastIndexOf('user');
const finalContent = history.slice(turnStart + 1).reduce((str, h) => {
if(h.role === 'assistant') return str + (h.content || '');
if(h.role === 'tool') return str + `<tool>${h.name}</tool>\n\n`;
return str;
}, '').trim();