Rename /tokenize_via_api endpoint

No redirect for this since I don't expect any extensions to be calling this directly.
This commit is contained in:
valadaptive
2023-12-09 19:29:24 -05:00
parent a23be7d785
commit 8bad059a62
2 changed files with 3 additions and 3 deletions

View File

@@ -1774,7 +1774,7 @@ async function sendAI21Request(request, response) {
}
app.post('/tokenize_via_api', jsonParser, async function (request, response) {
app.post('/api/tokenizers/remote/encode', jsonParser, async function (request, response) {
if (!request.body) {
return response.sendStatus(400);
}