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:
Waleed
2025-12-11 13:51:51 -08:00
committed by GitHub
parent c0bb85479d
commit d02499a915
2 changed files with 37 additions and 1 deletions

View File

@@ -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,

View File

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