Skip to content

Commit

Permalink
Sybc Flux ai with tracking (#25)
Browse files Browse the repository at this point in the history
* fix: Correct syntax by adding missing semicolon for FluxAPI import

* fix: Remove unnecessary comment from toolAuthFields in handleTools.js
  • Loading branch information
jmaddington authored Dec 17, 2024
1 parent 609542b commit 4a73418
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 16 deletions.
4 changes: 2 additions & 2 deletions api/app/clients/tools/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +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 FluxAPI = require('./structured/FluxAPI');=======
const WebNavigator = require('./structured/WebNavigator');
const E2BCode = require('./structured/E2BCode');

Expand All @@ -22,7 +22,7 @@ module.exports = {
TraversaalSearch,
StructuredWolfram,
TavilySearchResults,
FluxAPI,
FluxAPI
WebNavigator,
E2BCode,
};
14 changes: 0 additions & 14 deletions api/app/clients/tools/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,20 +139,6 @@
}
]
},
{
"name": "Flux",
"pluginKey": "flux",
"description": "Generate images using text with the Flux API.",
"icon": "/assets/flux.png",
"isAuthRequired": "true",
"authConfig": [
{
"authField": "FLUX_API_KEY",
"label": "Your Flux API Key",
"description": "Provide your Flux API key from your user profile."
}
]
},
{
"name": "WebNavigator",
"pluginKey": "WebNavigator",
Expand Down
2 changes: 2 additions & 0 deletions api/app/clients/tools/util/handleTools.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ const loadTools = async ({
const toolAuthFields = {};
toolAuthFields['flux'] = ['FLUX_API_KEY'];

toolAuthFields['flux'] = ['FLUX_API_KEY'];

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

0 comments on commit 4a73418

Please sign in to comment.