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,
|
chatGptLabel,
|
||||||
promptPrefix,
|
promptPrefix,
|
||||||
agentOptions,
|
agentOptions,
|
||||||
tools,
|
tools = [],
|
||||||
iconURL,
|
iconURL,
|
||||||
greeting,
|
greeting,
|
||||||
spec,
|
spec,
|
||||||
|
|
@ -19,7 +19,7 @@ const buildOptions = (endpoint, parsedBody) => {
|
||||||
tools:
|
tools:
|
||||||
tools
|
tools
|
||||||
.map((tool) => tool?.pluginKey ?? tool)
|
.map((tool) => tool?.pluginKey ?? tool)
|
||||||
.filter((toolName) => typeof toolName === 'string') ?? [],
|
.filter((toolName) => typeof toolName === 'string'),
|
||||||
chatGptLabel,
|
chatGptLabel,
|
||||||
promptPrefix,
|
promptPrefix,
|
||||||
agentOptions,
|
agentOptions,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue