Skip to content

Commit d65f64d

Browse files
committed
fix(providers): hide memory UI for deep research models
1 parent 57a271a commit d65f64d

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

apps/sim/blocks/blocks/agent.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,11 @@ Return ONLY the JSON array.`,
442442
{ label: 'Sliding window (tokens)', id: 'sliding_window_tokens' },
443443
],
444444
defaultValue: 'none',
445+
condition: {
446+
field: 'model',
447+
value: MODELS_WITH_DEEP_RESEARCH,
448+
not: true,
449+
},
445450
},
446451
{
447452
id: 'conversationId',

apps/sim/providers/gemini/core.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,10 @@ function sleep(ms: number): Promise<void> {
396396
/**
397397
* Collapses a ProviderRequest into a single input string and optional system instruction
398398
* for the Interactions API, which takes a flat input rather than a messages array.
399+
*
400+
* Deep research is single-turn only — it takes one research query and returns a report.
401+
* Memory/conversation history is hidden in the UI for deep research models, so only
402+
* the last user message is used as input. System messages are passed via system_instruction.
399403
*/
400404
function collapseMessagesToInput(request: ProviderRequest): {
401405
input: string

0 commit comments

Comments
 (0)