server : add /detokenize
endpoint (#2802)
* Add a /detokenize endpoint to the example server * remove trailing white-space
This commit is contained in:
parent
730d9c681e
commit
c1ac54b77a
2 changed files with 27 additions and 0 deletions
|
@ -164,6 +164,12 @@ node index.js
|
|||
|
||||
Note that the special `BOS` token is not added in front of the text and also a space character is not inserted automatically as it is for `/completion`.
|
||||
|
||||
- **POST** `/detokenize`: Convert tokens to text.
|
||||
|
||||
*Options:*
|
||||
|
||||
`tokens`: Set the tokens to detokenize.
|
||||
|
||||
- **POST** `/embedding`: Generate embedding of a given text just as [the embedding example](../embedding) does.
|
||||
|
||||
*Options:*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue