rename /chat_template to /props, and switch to non-trimmed hashes

This commit is contained in:
Karl-Johan Alm
2024-11-21 11:38:57 +09:00
parent 4214c9d894
commit c30dde8471
3 changed files with 42 additions and 40 deletions

View File

@@ -1240,7 +1240,7 @@ async function getStatusTextgen() {
const wantsContextDerivation = power_user.context_derived;
const supportsChatTemplate = response.headers.get('x-supports-chat-template') === 'true';
if (supportsChatTemplate && (wantsInstructDerivation || wantsContextDerivation)) {
const response = await fetch('/api/backends/text-completions/chat_template', {
const response = await fetch('/api/backends/text-completions/props', {
method: 'POST',
headers: getRequestHeaders(),
body: JSON.stringify({