| 1238 | | 1238 | |
| 1239 | const wantsInstructDerivation = (power_user.instruct.enabled && power_user.instruct.derived); | 1239 | const wantsInstructDerivation = (power_user.instruct.enabled && power_user.instruct.derived); |
| 1240 | const wantsContextDerivation = power_user.context_derived; | 1240 | const wantsContextDerivation = power_user.context_derived; |
| 1241 | const supportsChatTemplate = response.headers.get('x-supports-chat-template') === 'true'; | 1241 | const supportsChatTemplate = [textgen_types.KOBOLDCPP, textgen_types.LLAMACPP].includes(textgen_settings.type); |
| 1242 | if (supportsChatTemplate && (wantsInstructDerivation || wantsContextDerivation)) { | 1242 | if (supportsChatTemplate && (wantsInstructDerivation || wantsContextDerivation)) { |
| 1243 | const response = await fetch('/api/backends/text-completions/props', { | 1243 | const response = await fetch('/api/backends/text-completions/props', { |
| 1244 | method: 'POST', | 1244 | method: 'POST', |