Skip to content

Commit d02499a

Browse files
authored
fix(ollama): fixed messages array for ollama, added gpt-5.2 (#2315)
* fix(ollama): fixed messages array for ollama, added gpt-5.2 * ack PR comments
1 parent c0bb854 commit d02499a

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

apps/sim/executor/handlers/agent/agent-handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ export class AgentBlockHandler implements BlockHandler {
822822
provider: providerId,
823823
model,
824824
systemPrompt: validMessages ? undefined : inputs.systemPrompt,
825-
context: stringifyJSON(messages),
825+
context: validMessages ? undefined : stringifyJSON(messages),
826826
tools: formattedTools,
827827
temperature: inputs.temperature,
828828
maxTokens: inputs.maxTokens,

apps/sim/providers/models.ts

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,24 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
120120
},
121121
contextWindow: 128000,
122122
},
123+
{
124+
id: 'gpt-5.2',
125+
pricing: {
126+
input: 1.75,
127+
cachedInput: 0.175,
128+
output: 14.0,
129+
updatedAt: '2025-12-11',
130+
},
131+
capabilities: {
132+
reasoningEffort: {
133+
values: ['none', 'low', 'medium', 'high'],
134+
},
135+
verbosity: {
136+
values: ['low', 'medium', 'high'],
137+
},
138+
},
139+
contextWindow: 400000,
140+
},
123141
{
124142
id: 'gpt-5.1',
125143
pricing: {
@@ -355,6 +373,24 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
355373
},
356374
contextWindow: 128000,
357375
},
376+
{
377+
id: 'azure/gpt-5.2',
378+
pricing: {
379+
input: 1.75,
380+
cachedInput: 0.175,
381+
output: 14.0,
382+
updatedAt: '2025-12-11',
383+
},
384+
capabilities: {
385+
reasoningEffort: {
386+
values: ['none', 'low', 'medium', 'high'],
387+
},
388+
verbosity: {
389+
values: ['low', 'medium', 'high'],
390+
},
391+
},
392+
contextWindow: 400000,
393+
},
358394
{
359395
id: 'azure/gpt-5.1',
360396
pricing: {

0 commit comments

Comments
 (0)