Shut tokenization errors if not using ooba

Closes #2849
This commit is contained in:
Cohee
2024-09-22 17:44:19 +03:00
parent 8c5b02d2ea
commit 93bf87b035
3 changed files with 9 additions and 3 deletions

View File

@@ -186,6 +186,7 @@ router.post('/status', jsonParser, async function (request, response) {
const modelName = modelInfo?.model_name;
result = modelName || result;
response.setHeader('x-supports-tokenization', 'true');
}
} catch (error) {
console.error(`Failed to get Ooba model info: ${error}`);