mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-09 15:07:55 -05:00
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
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -120,6 +120,24 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
|
||||
},
|
||||
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<string, ProviderDefinition> = {
|
||||
},
|
||||
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: {
|
||||
|
||||
Reference in New Issue
Block a user