Skip to content

Commit 500dcd4

Browse files
fix(openrouter): ignored when tools are configured but unused (#3041)
1 parent 8bdba37 commit 500dcd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/sim/providers/openrouter/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ export const openRouterProvider: ProviderConfig = {
516516
return streamingResult as StreamingExecution
517517
}
518518

519-
if (request.responseFormat && hasActiveTools && toolCalls.length > 0) {
519+
if (request.responseFormat && hasActiveTools) {
520520
const finalPayload: any = {
521521
model: payload.model,
522522
messages: [...currentMessages],

0 commit comments

Comments
 (0)