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:
Danny Avila 2023-08-28 14:24:10 -04:00 committed by GitHub
parent d3e7627046
commit d672ac690d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 63 additions and 27 deletions

View file

@ -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.