Rename /textgenerationwebui endpoint

I'd like to migrate over to using "textgen" to mean text-generation APIs
in general, so I've renamed the /textgenerationwebui/* endpoints to
/backends/text-completions/*.
This commit is contained in:
valadaptive
2023-12-11 23:13:26 -05:00
parent 3d7706e6b3
commit 5b3c96df50
3 changed files with 5 additions and 5 deletions

View File

@@ -928,7 +928,7 @@ async function getStatusKobold() {
}
async function getStatusTextgen() {
const url = '/api/textgenerationwebui/status';
const url = '/api/backends/text-completions/status';
let endpoint = textgen_settings.type === MANCER ?
MANCER_SERVER :
@@ -4428,7 +4428,7 @@ function getGenerateUrl(api) {
if (api == 'kobold') {
generate_url = '/generate';
} else if (api == 'textgenerationwebui') {
generate_url = '/api/textgenerationwebui/generate';
generate_url = '/api/backends/text-completions/generate';
} else if (api == 'novel') {
generate_url = '/api/novelai/generate';
}