| 1004 | bodyParams['route'] = 'fallback'; | 1005 | bodyParams['route'] = 'fallback'; |
| 1005 | } | 1006 | } |
| 1006 | | 1007 | |
| 1007 | if (request.body.include_reasoning) { | | |
| 1008 | bodyParams['include_reasoning'] = true; | | |
| 1009 | } | | |
| 1010 | | | |
| 1011 | let cachingAtDepth = getConfigValue('claude.cachingAtDepth', -1); | 1008 | let cachingAtDepth = getConfigValue('claude.cachingAtDepth', -1); |
| 1012 | if (Number.isInteger(cachingAtDepth) && cachingAtDepth >= 0 && request.body.model?.startsWith('anthropic/claude-3')) { | 1009 | if (Number.isInteger(cachingAtDepth) && cachingAtDepth >= 0 && request.body.model?.startsWith('anthropic/claude-3')) { |
| 1013 | cachingAtDepthForOpenRouterClaude(request.body.messages, cachingAtDepth); | 1010 | cachingAtDepthForOpenRouterClaude(request.body.messages, cachingAtDepth); |