mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 00:40:14 +01:00
🧩 fix: plugins build options, prevent undefined tools error (#3876)
This commit is contained in:
parent
a0291ed155
commit
136599081c
1 changed files with 2 additions and 2 deletions
|
|
@ -6,7 +6,7 @@ const buildOptions = (endpoint, parsedBody) => {
|
|||
chatGptLabel,
|
||||
promptPrefix,
|
||||
agentOptions,
|
||||
tools,
|
||||
tools = [],
|
||||
iconURL,
|
||||
greeting,
|
||||
spec,
|
||||
|
|
@ -19,7 +19,7 @@ const buildOptions = (endpoint, parsedBody) => {
|
|||
tools:
|
||||
tools
|
||||
.map((tool) => tool?.pluginKey ?? tool)
|
||||
.filter((toolName) => typeof toolName === 'string') ?? [],
|
||||
.filter((toolName) => typeof toolName === 'string'),
|
||||
chatGptLabel,
|
||||
promptPrefix,
|
||||
agentOptions,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue