Added featherless, connect button not working

This commit is contained in:
DarokCx
2024-06-27 09:06:11 -04:00
parent 00b44071a6
commit bd5592de7b
7 changed files with 126 additions and 4 deletions

View File

@@ -126,6 +126,9 @@ router.post('/status', jsonParser, async function (request, response) {
case TEXTGEN_TYPES.OLLAMA:
url += '/api/tags';
break;
case TEXTGEN_TYPES.FEATHERLESS:
url += '/v1/models';
break;
}
}
@@ -135,7 +138,7 @@ router.post('/status', jsonParser, async function (request, response) {
console.log('Models endpoint is offline.');
return response.status(400);
}
console.log("url for models", url)
let data = await modelsReply.json();
if (request.body.legacy_api) {