Skip to content

Commit 1d4d61a

Browse files
authored
feat(azure): added azure anthropic, added backwards compat support for chat completions API, added opus 4.6 (#3145)
* feat(azure): added azure anthropic, added backwards compat support for chat completions API, added opus 4.6 * added max thinking level * update tests * ack comments * update cql validation
1 parent 2d7e6c9 commit 1d4d61a

File tree

14 files changed

+2282
-1219
lines changed

14 files changed

+2282
-1219
lines changed

apps/sim/app/api/tools/confluence/search-in-space/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export async function POST(request: NextRequest) {
5353
return NextResponse.json({ error: cloudIdValidation.error }, { status: 400 })
5454
}
5555

56-
const escapeCqlValue = (value: string) => value.replace(/"/g, '\\"')
56+
const escapeCqlValue = (value: string) => value.replace(/\\/g, '\\\\').replace(/"/g, '\\"')
5757

5858
let cql = `space = "${escapeCqlValue(spaceKey)}"`
5959

apps/sim/app/api/tools/confluence/search/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export async function POST(request: NextRequest) {
4242
return NextResponse.json({ error: cloudIdValidation.error }, { status: 400 })
4343
}
4444

45-
const escapeCqlValue = (value: string) => value.replace(/"/g, '\\"')
45+
const escapeCqlValue = (value: string) => value.replace(/\\/g, '\\\\').replace(/"/g, '\\"')
4646

4747
const searchParams = new URLSearchParams({
4848
cql: `text ~ "${escapeCqlValue(query)}"`,

apps/sim/app/llms-full.txt/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ An execution is a single run of a workflow. It includes:
5656
### LLM Orchestration
5757
Sim supports all major LLM providers:
5858
- OpenAI (GPT-5.2, GPT-5.1, GPT-5, GPT-4o, GPT-4.1)
59-
- Anthropic (Claude Opus 4.5, Claude Opus 4.1, Claude Sonnet 4.5, Claude Haiku 4.5)
59+
- Anthropic (Claude Opus 4.6, Claude Opus 4.5, Claude Sonnet 4.5, Claude Haiku 4.5)
6060
- Google (Gemini Pro 3, Gemini Pro 3 Preview, Gemini 2.5 Pro, Gemini 2.5 Flash)
6161
- Mistral (Mistral Large, Mistral Medium)
6262
- xAI (Grok)

apps/sim/blocks/blocks/agent.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ Return ONLY the JSON array.`,
274274
{ label: 'low', id: 'low' },
275275
{ label: 'medium', id: 'medium' },
276276
{ label: 'high', id: 'high' },
277+
{ label: 'max', id: 'max' },
277278
],
278279
dependsOn: ['model'],
279280
fetchOptions: async (blockId: string) => {
@@ -318,14 +319,14 @@ Return ONLY the JSON array.`,
318319

319320
{
320321
id: 'azureEndpoint',
321-
title: 'Azure OpenAI Endpoint',
322+
title: 'Azure Endpoint',
322323
type: 'short-input',
323324
password: true,
324-
placeholder: 'https://your-resource.openai.azure.com',
325+
placeholder: 'https://your-resource.services.ai.azure.com',
325326
connectionDroppable: false,
326327
condition: {
327328
field: 'model',
328-
value: providers['azure-openai'].models,
329+
value: [...providers['azure-openai'].models, ...providers['azure-anthropic'].models],
329330
},
330331
},
331332
{
@@ -763,7 +764,10 @@ Example 3 (Array Input):
763764
maxTokens: { type: 'number', description: 'Maximum number of tokens in the response' },
764765
reasoningEffort: { type: 'string', description: 'Reasoning effort level for GPT-5 models' },
765766
verbosity: { type: 'string', description: 'Verbosity level for GPT-5 models' },
766-
thinkingLevel: { type: 'string', description: 'Thinking level for Gemini 3 models' },
767+
thinkingLevel: {
768+
type: 'string',
769+
description: 'Thinking level for models with extended thinking (Anthropic Claude, Gemini 3)',
770+
},
767771
tools: { type: 'json', description: 'Available tools configuration' },
768772
},
769773
outputs: {

0 commit comments

Comments
 (0)