feat: CodeBrew Plugin (#931)

* Added CodeBrew Plugin.

* fix: CodeBrew import in index.js

---------

Co-authored-by: Danny Avila <110412045+danny-avila@users.noreply.github.com>
This commit is contained in:
Francisco Aguilera 2023-09-13 11:51:53 -04:00 committed by GitHub
parent d003d7b16e
commit e4843c4680
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 45 additions and 0 deletions

View file

@ -21,6 +21,7 @@ const {
E2BTools,
CodeSherpa,
CodeSherpaTools,
CodeBrew,
} = require('../');
const { loadSpecs } = require('./loadSpecs');
const { loadToolSuite } = require('./loadToolSuite');
@ -100,6 +101,7 @@ const loadTools = async ({
'dall-e': OpenAICreateImage,
'stable-diffusion': functions ? StructuredSD : StableDiffusionAPI,
'azure-cognitive-search': functions ? StructuredACS : AzureCognitiveSearch,
CodeBrew: CodeBrew,
};
const openAIApiKey = await getOpenAIKey(options, user);