fix(openrouter): ignored when tools are configured but unused

This commit is contained in:
Vikhyath Mondreti
2026-01-27 19:39:21 -08:00
parent 8bdba373c6
commit 74f6e08fb4

View File

@@ -516,7 +516,7 @@ export const openRouterProvider: ProviderConfig = {
return streamingResult as StreamingExecution
}
if (request.responseFormat && hasActiveTools && toolCalls.length > 0) {
if (request.responseFormat && hasActiveTools) {
const finalPayload: any = {
model: payload.model,
messages: [...currentMessages],