Fix NanoGPT Claude cache detection for prefixed model IDs (#5164)

4672647293b616ba99a87bfe3dbeeb76d5f3ad7d

SenatusSPQR1 <148453382+SenatusSPQR1@users.noreply.github.com>

Signed
1 files changed, +1 -1Showing whitespace changes
src/endpoints/backends/chat-completions.js+1 -1
@@ -2241,7 +2241,7 @@ router.post('/generate', async function (request, response) {
22412241 bodyParams['reasoning'] = { effort: effort };
22422242 }
22432243
22442244 const isClaude = /(?:^|\/)claude[-_]/.test(request.body.model);
22452245 if (enableSystemPromptCache && isClaude) {
22462246 bodyParams['cache_control'] = {
22472247 'enabled': true,