mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-21 10:50:14 +01:00
Release v0.5.8 (#854)
* chore: add 'api' image to tag release workflow * docs: update DO deployment docs to include instruction about latest stable release, as well as security best practices * Release v0.5.8 * docs: Update digitalocean.md with firewall section images * docs: make_your_own.md formatting fix for mkdocs
This commit is contained in:
parent
d3e7627046
commit
d672ac690d
8 changed files with 63 additions and 27 deletions
|
|
@ -159,6 +159,7 @@ const StableDiffusionAPI = require('./StableDiffusion');
|
|||
```
|
||||
|
||||
In handleTools.js, find the beginning of the `loadTools` function and add your plugin/tool to the toolConstructors object.
|
||||
|
||||
```js
|
||||
const loadTools = async ({ user, model, tools = [], options = {} }) => {
|
||||
const toolConstructors = {
|
||||
|
|
@ -169,7 +170,7 @@ const loadTools = async ({ user, model, tools = [], options = {} }) => {
|
|||
'stable-diffusion': StableDiffusionAPI // <----- Newly Added. Note: the key is the 'name' provided in the class.
|
||||
// We will now refer to this name as the `pluginKey`
|
||||
};
|
||||
```
|
||||
```
|
||||
|
||||
If your Tool class requires more advanced initialization, you would add it to the customConstructors object.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue