Skip to content

Commit b38719a

Browse files
committed
fix(providers): only collect user messages as deep research input
1 parent 56317f0 commit b38719a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/sim/providers/gemini/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ function collapseMessagesToInput(request: ProviderRequest): {
416416
for (const msg of request.messages) {
417417
if (msg.role === 'system' && msg.content) {
418418
systemParts.push(msg.content)
419-
} else if (msg.content) {
419+
} else if (msg.role === 'user' && msg.content) {
420420
userParts.push(msg.content)
421421
}
422422
}

0 commit comments

Comments
 (0)