diff --git a/apps/sim/executor/handlers/agent/agent-handler.ts b/apps/sim/executor/handlers/agent/agent-handler.ts index d01e11ea6a..2aeaff3035 100644 --- a/apps/sim/executor/handlers/agent/agent-handler.ts +++ b/apps/sim/executor/handlers/agent/agent-handler.ts @@ -822,7 +822,7 @@ export class AgentBlockHandler implements BlockHandler { provider: providerId, model, systemPrompt: validMessages ? undefined : inputs.systemPrompt, - context: stringifyJSON(messages), + context: validMessages ? undefined : stringifyJSON(messages), tools: formattedTools, temperature: inputs.temperature, maxTokens: inputs.maxTokens, diff --git a/apps/sim/providers/models.ts b/apps/sim/providers/models.ts index 04ecdb7182..aac7c30b40 100644 --- a/apps/sim/providers/models.ts +++ b/apps/sim/providers/models.ts @@ -120,6 +120,24 @@ export const PROVIDER_DEFINITIONS: Record = { }, contextWindow: 128000, }, + { + id: 'gpt-5.2', + pricing: { + input: 1.75, + cachedInput: 0.175, + output: 14.0, + updatedAt: '2025-12-11', + }, + capabilities: { + reasoningEffort: { + values: ['none', 'low', 'medium', 'high'], + }, + verbosity: { + values: ['low', 'medium', 'high'], + }, + }, + contextWindow: 400000, + }, { id: 'gpt-5.1', pricing: { @@ -355,6 +373,24 @@ export const PROVIDER_DEFINITIONS: Record = { }, contextWindow: 128000, }, + { + id: 'azure/gpt-5.2', + pricing: { + input: 1.75, + cachedInput: 0.175, + output: 14.0, + updatedAt: '2025-12-11', + }, + capabilities: { + reasoningEffort: { + values: ['none', 'low', 'medium', 'high'], + }, + verbosity: { + values: ['low', 'medium', 'high'], + }, + }, + contextWindow: 400000, + }, { id: 'azure/gpt-5.1', pricing: {