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

This commit is contained in:
Vikhyath Mondreti
2026-01-27 19:43:44 -08:00
committed by GitHub
parent 8bdba373c6
commit 500dcd4734

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],