Skip to content

Commit 7010c2d

Browse files
committed
feat(models): added gpt-4.1
1 parent db369fe commit 7010c2d

File tree

6 files changed

+11
-4
lines changed

6 files changed

+11
-4
lines changed

apps/docs/content/docs/blocks/agent.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ The user prompt or context is the specific input or question that the agent shou
6868

6969
Choose from a variety of LLM providers:
7070

71-
- OpenAI (GPT-4o, o1, o3, o4-mini)
71+
- OpenAI (GPT-4o, o1, o3, o4-mini, gpt-4.1)
7272
- Anthropic (Claude 3.7 Sonnet)
7373
- Google (Gemini 2.5 Pro, Gemini 2.0 Flash)
7474
- Groq, Cerebras

apps/docs/content/docs/blocks/evaluator.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ The content to be evaluated. This can be:
5757

5858
Choose an LLM provider to perform the evaluation:
5959

60-
- OpenAI (GPT-4o, o1, o3, o4-mini)
60+
- OpenAI (GPT-4o, o1, o3, , gpt-4.1)
6161
- Anthropic (Claude 3.7 Sonnet)
6262
- Google (Gemini 2.5 Pro, Gemini 2.0 Flash)
6363
- Groq, Cerebras

apps/sim/blocks/blocks/agent.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ export const AgentBlock: BlockConfig<AgentResponse> = {
127127
'o3',
128128
'o3-preview',
129129
'o4-mini',
130+
'gpt-4.1',
130131
// Claude models
131132
'claude-3-5-sonnet-20240620',
132133
'claude-3-7-sonnet-20250219',

apps/sim/providers/openai/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const openaiProvider: ProviderConfig = {
5555
name: 'OpenAI',
5656
description: "OpenAI's GPT models",
5757
version: '1.0.0',
58-
models: ['gpt-4o', 'o1', 'o3', 'o4-mini'],
58+
models: ['gpt-4o', 'o1', 'o3', 'o4-mini', 'gpt-4.1'],
5959
defaultModel: 'gpt-4o',
6060

6161
executeRequest: async (

apps/sim/providers/pricing.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ const modelPricing: ModelPricingMap = {
3232
output: 4.4,
3333
updatedAt: '2025-04-16',
3434
},
35+
'gpt-4.1': {
36+
input: 2.0,
37+
cachedInput: 0.5,
38+
output: 8.0,
39+
updatedAt: '2025-05-13',
40+
},
3541

3642
// Anthropic Models
3743
'claude-3-5-sonnet-20240620': {

apps/sim/providers/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const providers: Record<
2828
> = {
2929
openai: {
3030
...openaiProvider,
31-
models: ['gpt-4o', 'o1', 'o3', 'o4-mini'],
31+
models: ['gpt-4o', 'o1', 'o3', 'o4-mini', 'gpt-4.1'],
3232
computerUseModels: ['computer-use-preview'],
3333
modelPatterns: [/^gpt/, /^o1/],
3434
},

0 commit comments

Comments
 (0)