-
Notifications
You must be signed in to change notification settings - Fork 2.5k
feat(models): added gpt-5.1 #2007
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -210,6 +210,7 @@ Create a system prompt appropriately detailed for the request, using clear langu | |
| type: 'dropdown', | ||
| placeholder: 'Select reasoning effort...', | ||
| options: [ | ||
| { label: 'none', id: 'none' }, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. logic: Added Prompt To Fix With AIThis is a comment left during a code review.
Path: apps/sim/blocks/blocks/agent.ts
Line: 213:213
Comment:
**logic:** Added `'none'` to reasoning effort, but GPT-5 models use `'minimal'` (line 182 in `models.ts`). This inconsistency means GPT-5.1 and GPT-5 have different reasoning effort options.
How can I resolve this? If you propose a fix, please make it concise. |
||
| { label: 'minimal', id: 'minimal' }, | ||
| { label: 'low', id: 'low' }, | ||
| { label: 'medium', id: 'medium' }, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -101,6 +101,74 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = { | |
| temperature: { min: 0, max: 2 }, | ||
| }, | ||
| }, | ||
| { | ||
| id: 'gpt-5.1', | ||
| pricing: { | ||
| input: 1.25, | ||
| cachedInput: 0.125, | ||
| output: 10.0, | ||
| updatedAt: '2025-11-14', | ||
| }, | ||
| capabilities: { | ||
| reasoningEffort: { | ||
| values: ['none', 'low', 'medium', 'high'], | ||
| }, | ||
| verbosity: { | ||
| values: ['low', 'medium', 'high'], | ||
| }, | ||
| }, | ||
| }, | ||
|
Comment on lines
+105
to
+120
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. logic: Prompt To Fix With AIThis is a comment left during a code review.
Path: apps/sim/providers/models.ts
Line: 105:120
Comment:
**logic:** `gpt-5.1` doesn't exist - OpenAI hasn't announced this model. Verify model availability before adding.
How can I resolve this? If you propose a fix, please make it concise. |
||
| { | ||
| id: 'gpt-5.1-mini', | ||
| pricing: { | ||
| input: 0.25, | ||
| cachedInput: 0.025, | ||
| output: 2.0, | ||
| updatedAt: '2025-11-14', | ||
| }, | ||
| capabilities: { | ||
| reasoningEffort: { | ||
| values: ['none', 'low', 'medium', 'high'], | ||
| }, | ||
| verbosity: { | ||
| values: ['low', 'medium', 'high'], | ||
| }, | ||
| }, | ||
| }, | ||
| { | ||
| id: 'gpt-5.1-nano', | ||
| pricing: { | ||
| input: 0.05, | ||
| cachedInput: 0.005, | ||
| output: 0.4, | ||
| updatedAt: '2025-11-14', | ||
| }, | ||
| capabilities: { | ||
| reasoningEffort: { | ||
| values: ['none', 'low', 'medium', 'high'], | ||
| }, | ||
| verbosity: { | ||
| values: ['low', 'medium', 'high'], | ||
| }, | ||
| }, | ||
| }, | ||
| { | ||
| id: 'gpt-5.1-codex', | ||
| pricing: { | ||
| input: 1.25, | ||
| cachedInput: 0.125, | ||
| output: 10.0, | ||
| updatedAt: '2025-11-14', | ||
| }, | ||
| capabilities: { | ||
| reasoningEffort: { | ||
| values: ['none', 'medium', 'high'], | ||
| }, | ||
| verbosity: { | ||
| values: ['low', 'medium', 'high'], | ||
| }, | ||
| }, | ||
| }, | ||
| { | ||
| id: 'gpt-5', | ||
| pricing: { | ||
|
|
@@ -253,6 +321,74 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = { | |
| temperature: { min: 0, max: 2 }, | ||
| }, | ||
| }, | ||
| { | ||
| id: 'azure/gpt-5.1', | ||
| pricing: { | ||
| input: 1.25, | ||
| cachedInput: 0.125, | ||
| output: 10.0, | ||
| updatedAt: '2025-11-14', | ||
| }, | ||
| capabilities: { | ||
| reasoningEffort: { | ||
| values: ['none', 'low', 'medium', 'high'], | ||
| }, | ||
| verbosity: { | ||
| values: ['low', 'medium', 'high'], | ||
| }, | ||
| }, | ||
| }, | ||
| { | ||
| id: 'azure/gpt-5.1-mini', | ||
| pricing: { | ||
| input: 0.25, | ||
| cachedInput: 0.025, | ||
| output: 2.0, | ||
| updatedAt: '2025-11-14', | ||
| }, | ||
| capabilities: { | ||
| reasoningEffort: { | ||
| values: ['none', 'low', 'medium', 'high'], | ||
| }, | ||
| verbosity: { | ||
| values: ['low', 'medium', 'high'], | ||
| }, | ||
| }, | ||
| }, | ||
| { | ||
| id: 'azure/gpt-5.1-nano', | ||
| pricing: { | ||
| input: 0.05, | ||
| cachedInput: 0.005, | ||
| output: 0.4, | ||
| updatedAt: '2025-11-14', | ||
| }, | ||
| capabilities: { | ||
| reasoningEffort: { | ||
| values: ['none', 'low', 'medium', 'high'], | ||
| }, | ||
| verbosity: { | ||
| values: ['low', 'medium', 'high'], | ||
| }, | ||
| }, | ||
| }, | ||
| { | ||
| id: 'azure/gpt-5.1-codex', | ||
| pricing: { | ||
| input: 1.25, | ||
| cachedInput: 0.125, | ||
| output: 10.0, | ||
| updatedAt: '2025-11-14', | ||
| }, | ||
| capabilities: { | ||
| reasoningEffort: { | ||
| values: ['none', 'medium', 'high'], | ||
| }, | ||
| verbosity: { | ||
| values: ['low', 'medium', 'high'], | ||
| }, | ||
| }, | ||
| }, | ||
| { | ||
| id: 'azure/gpt-5', | ||
| pricing: { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logic: Documentation references non-existent models:
GPT-5.1hasn't been announced by OpenAIClaude 4.5 SonnetandClaude Opus 4.1don't match actual Anthropic model names (should beclaude-sonnet-4-5andclaude-opus-4-1)Azure OpenAIandOpenRouterare documented as "Other Providers" but should be separate categories since they're distinct provider typesPrompt To Fix With AI