-
Notifications
You must be signed in to change notification settings - Fork 46.1k
feat(Blocks): Add GPT-5.1 and GPT-5.1-codex #11406
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
base: dev
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for auto-gpt-docs-dev canceled.
|
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Tip 📝 Customizable high-level summaries are now available in beta!You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.
Example instruction:
Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
✅ Deploy Preview for auto-gpt-docs canceled.
|
|
You are nearing your monthly Qodo Merge usage quota. For more information, please visit here. PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
Here's the code health analysis summary for commits Analysis Summary
|
| # GPT-5 models | ||
| GPT5 = "gpt-5-2025-08-07" | ||
| GPT5_1 = "gpt-5.1-2025-11-13" | ||
| GPT5_1_CODEX = "gpt-5.1-codex" |
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.
Bug: The GPT5_1_CODEX model uses the incorrect OpenAI API, causing API rejection.
Severity: CRITICAL | Confidence: 1.00
🔍 Detailed Analysis
The GPT5_1_CODEX model is configured to use the OpenAI Chat Completions API (oai_client.chat.completions.create()). However, OpenAI's official documentation specifies that gpt-5.1-codex is exclusively served through the Responses API. This mismatch will cause OpenAI's API to reject requests for gpt-5.1-codex, leading to runtime crashes whenever this model is invoked by any LLM block.
💡 Suggested Fix
Implement support for OpenAI's Responses API within llm_call() for gpt-5.1-codex or remove the model if Responses API integration is not planned.
🤖 Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.
Location: autogpt_platform/backend/backend/blocks/llm.py#L97
Potential issue: The `GPT5_1_CODEX` model is configured to use the OpenAI Chat
Completions API (`oai_client.chat.completions.create()`). However, OpenAI's official
documentation specifies that `gpt-5.1-codex` is exclusively served through the Responses
API. This mismatch will cause OpenAI's API to reject requests for `gpt-5.1-codex`,
leading to runtime crashes whenever this model is invoked by any LLM block.
Did we get this right? 👍 / 👎 to inform future reviews.
Reference_id: 2766327
| O1_MINI = "o1-mini" | ||
| # GPT-5 models | ||
| GPT5 = "gpt-5-2025-08-07" | ||
| GPT5_1 = "gpt-5.1-2025-11-13" |
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.
Bug: The GPT5_1 model uses an invalid identifier not found in OpenAI documentation.
Severity: CRITICAL | Confidence: 1.00
🔍 Detailed Analysis
The model identifier gpt-5.1-2025-11-13 assigned to GPT5_1 is not listed in OpenAI's official API documentation for GPT-5.1 models. When oai_client.chat.completions.create() is called with this identifier, OpenAI's API will reject the request with a 'model not found' error, preventing the GPT5_1 model from being used.
💡 Suggested Fix
Update the GPT5_1 model identifier to a valid one from OpenAI's official documentation, such as gpt-5.1 or gpt-5.1-chat-latest.
🤖 Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.
Location: autogpt_platform/backend/backend/blocks/llm.py#L96
Potential issue: The model identifier `gpt-5.1-2025-11-13` assigned to `GPT5_1` is not
listed in OpenAI's official API documentation for GPT-5.1 models. When
`oai_client.chat.completions.create()` is called with this identifier, OpenAI's API will
reject the request with a 'model not found' error, preventing the `GPT5_1` model from
being used.
Did we get this right? 👍 / 👎 to inform future reviews.
Reference_id: 2766327
This pr adds the latest gpt-5.1 and gpt-5.1-codex llm's from openai, as well as update the price of the gpt-5-chat model
https://platform.openai.com/docs/models/gpt-5.1
https://platform.openai.com/docs/models/gpt-5.1-codex
For code changes: