mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 17:00:15 +01:00
🔧 chore: Update @librechat/agents to version 3.0.49 and enhance tool calling logic
This commit is contained in:
parent
4359260b38
commit
b3ace68178
9 changed files with 32 additions and 21 deletions
|
|
@ -1,5 +1,6 @@
|
|||
const { nanoid } = require('nanoid');
|
||||
const { sendEvent } = require('@librechat/api');
|
||||
const { Constants } = require('@librechat/agents');
|
||||
const { logger } = require('@librechat/data-schemas');
|
||||
const { Tools, StepTypes, FileContext, ErrorTypes } = require('librechat-data-provider');
|
||||
const {
|
||||
|
|
@ -406,9 +407,11 @@ function createToolEndCallback({ req, res, artifactPromises }) {
|
|||
}
|
||||
return;
|
||||
}
|
||||
|
||||
// Constants.PROGRAMMATIC_TOOL_CALLING
|
||||
{
|
||||
if (output.name !== Tools.execute_code) {
|
||||
const isCodeTool =
|
||||
output.name === Tools.execute_code || output.name === Constants.PROGRAMMATIC_TOOL_CALLING;
|
||||
if (!isCodeTool) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue