Skip to content

Commit

Permalink
Fix: fix mistaken lines in merge
Browse files Browse the repository at this point in the history
  • Loading branch information
jmaddington committed Dec 9, 2024
1 parent 0e8e274 commit 9df7c10
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions api/app/clients/tools/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const StructuredSD = require('./structured/StableDiffusion');
const GoogleSearchAPI = require('./structured/GoogleSearch');
const TraversaalSearch = require('./structured/TraversaalSearch');
const TavilySearchResults = require('./structured/TavilySearchResults');
const FluxAPI = require('./structured/FluxAPI');
const WebNavigator = require('./structured/WebNavigator');

module.exports = {
Expand Down
4 changes: 0 additions & 4 deletions api/app/clients/tools/util/handleTools.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ const {
TavilySearchResults,
FluxAPI,
WebNavigator,
FluxAPI,
} = require('../');
const { primeFiles: primeCodeFiles } = require('~/server/services/Files/Code/process');
const { createFileSearchTool, primeFiles: primeSearchFiles } = require('./fileSearch');
Expand Down Expand Up @@ -165,7 +164,6 @@ const loadTools = async ({
tavily_search_results_json: TavilySearchResults,
flux: FluxAPI,
WebNavigator: WebNavigator,
flux: FluxAPI,
};

const customConstructors = {
Expand Down Expand Up @@ -202,12 +200,10 @@ const loadTools = async ({
dalle: imageGenOptions,
'stable-diffusion': imageGenOptions,
'flux' : imageGenOptions,
'flux' : imageGenOptions,
};

const toolAuthFields = {};
toolAuthFields['flux'] = ['FLUX_API_KEY'];
toolAuthFields['flux'] = ['FLUX_API_KEY']; //I'm not sure if this is correct

availableTools.forEach((tool) => {
if (customConstructors[tool.pluginKey]) {
Expand Down

0 comments on commit 9df7c10

Please sign in to comment.