Langchain integration, own openai api key and max ...
# 🤝help
m
Hello, Is it possible to add NPM package to botpress? Can we use our own openai api key and adjust the max length of response? (I want to chain prompts together to create long form content) Also does the open source licence needs a botpresss licence key? Thanks in advance
a
Hi Gogo! You can't add your own NPM package to Botpress at the moment, so no Langchain integration, however we do include the Axios library so you can call the OpenAI api using the Execute Code card for full control. You will be able to chain prompts in Botpress directly using a few execute code cards. The open source license for Botpress v12 is an AGPL-3.0 license.
m
Hi Patrick! Thanks for the quick response! With the AGPL-3.0 license, would it mean that I need to share the code of my api functions/calls to external apis if I want to sell workflow templates in a Saas that would use Botpress for the chat/embedding part of it? Also is there plan to upgrade the Node version (currently 12) to 16-18-20? Thanks in advance,
a
For Botpress 12 questions, please ask questions in the repo https://github.com/botpress/botpress/ (issues or discussions). I can't evaluate a particular use case involving AGPL-3.0 but it's a standard license, so you should be able to find info about it and know what is and isn't permitted. 🙂
56 Views