Skip to content

Commit 7d48437

Browse files
committed
fix(ollama): fixed messages array for ollama, added gpt-5.2
1 parent 3db8f82 commit 7d48437

File tree

2 files changed

+36
-8
lines changed

2 files changed

+36
-8
lines changed

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: {

apps/sim/providers/ollama/index.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,6 @@ export const ollamaProvider: ProviderConfig = {
118118
})
119119
}
120120

121-
// Add context if present
122-
if (request.context) {
123-
allMessages.push({
124-
role: 'user',
125-
content: request.context,
126-
})
127-
}
128-
129121
// Add remaining messages
130122
if (request.messages) {
131123
allMessages.push(...request.messages)

0 commit comments

Comments
 (0)