mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2025-06-08 14:46:14 -04:00
Update Extensions.md
This commit is contained in:
parent
8aafb1f796
commit
ee3c8a893e
1 changed files with 2 additions and 0 deletions
|
@ -110,6 +110,8 @@ python server.py --extensions translate enthusiasm # First apply translate, then
|
|||
|
||||
Once defined in a `script.py`, this function is executed in place of the main generation functions. You can use it to connect the web UI to an external API, or to load a custom model that is not supported yet.
|
||||
|
||||
Note that in chat mode, this function must only return the new text, whereas in other modes it must return the original prompt + the new text.
|
||||
|
||||
```python
|
||||
import datetime
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue