Fix OpenRouter caching at depth with null model selection
| @@ -891,7 +891,7 @@ router.post('/generate', jsonParser, function (request, response) { | ||
| 891 | 891 | } |
| 892 | 892 | |
| 893 | 893 | let cachingAtDepth = getConfigValue('claude.cachingAtDepth', -1); |
| 894 | 894 | if (Number.isInteger(cachingAtDepth) && cachingAtDepth >= 0 && request.body.model?.startsWith('anthropic/claude-3')) { |
| 895 | 895 | cachingAtDepthForOpenRouterClaude(request.body.messages, cachingAtDepth); |
| 896 | 896 | } |
| 897 | 897 | } else if (request.body.chat_completion_source === CHAT_COMPLETION_SOURCES.CUSTOM) { |