Skip to content

Commit

Permalink
🧩 fix: plugins build options, prevent undefined tools error (danny-av…
Browse files Browse the repository at this point in the history
  • Loading branch information
danny-avila authored Sep 1, 2024
1 parent a0291ed commit 1365990
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/server/services/Endpoints/gptPlugins/buildOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const buildOptions = (endpoint, parsedBody) => {
chatGptLabel,
promptPrefix,
agentOptions,
tools,
tools = [],
iconURL,
greeting,
spec,
Expand All @@ -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,
Expand Down

0 comments on commit 1365990

Please sign in to comment.