Added MCP, Hybrid Memories and Skill support
All checks were successful
Publish Library / Build NPM Project (push) Successful in 56s
Publish Library / Tag Version (push) Successful in 16s

This commit is contained in:
2026-06-06 22:02:19 -04:00
parent af6522ad88
commit 0b1c25dfda
11 changed files with 2191 additions and 2417 deletions

View File

@@ -138,6 +138,7 @@ export class OpenAi extends LLMProvider {
}
}
if(resp.error) throw new Error(resp.error);
const toolCalls = resp.choices[0].message.tool_calls || [];
if(toolCalls.length && !controller.signal.aborted) {
history.push(resp.choices[0].message);
@@ -157,7 +158,7 @@ export class OpenAi extends LLMProvider {
requestParams.messages = history;
}
} while (!controller.signal.aborted && resp.choices?.[0]?.message?.tool_calls?.length);
history.push({role: 'assistant', content: resp.choices[0].message.content || ''});
history.push({role: 'assistant', content: resp.choices[0].message.content.trim() || ''});
history = this.toStandard(history);
if(options.stream) options.stream({done: true});