-
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?
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 |
|---|---|---|
|
|
@@ -93,6 +93,8 @@ class LlmModel(str, Enum, metaclass=LlmModelMeta): | |
| O1_MINI = "o1-mini" | ||
| # 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 commentThe reason will be displayed to describe this comment to others. Learn more. Bug: The 🔍 Detailed AnalysisThe 💡 Suggested FixImplement support for OpenAI's Responses API within 🤖 Prompt for AI AgentDid we get this right? 👍 / 👎 to inform future reviews. Reference_id: 2766327 |
||
| GPT5_MINI = "gpt-5-mini-2025-08-07" | ||
| GPT5_NANO = "gpt-5-nano-2025-08-07" | ||
| GPT5_CHAT = "gpt-5-chat-latest" | ||
|
|
@@ -189,6 +191,8 @@ def max_output_tokens(self) -> int | None: | |
| LlmModel.O1_MINI: ModelMetadata("openai", 128000, 65536), # o1-mini-2024-09-12 | ||
| # GPT-5 models | ||
| LlmModel.GPT5: ModelMetadata("openai", 400000, 128000), | ||
| LlmModel.GPT5_1: ModelMetadata("openai", 400000, 128000), | ||
| LlmModel.GPT5_1_CODEX: ModelMetadata("openai", 400000, 128000), | ||
| LlmModel.GPT5_MINI: ModelMetadata("openai", 400000, 128000), | ||
| LlmModel.GPT5_NANO: ModelMetadata("openai", 400000, 128000), | ||
| LlmModel.GPT5_CHAT: ModelMetadata("openai", 400000, 16384), | ||
|
|
||
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_1model uses an invalid identifier not found in OpenAI documentation.Severity: CRITICAL | Confidence: 1.00
🔍 Detailed Analysis
The model identifier
gpt-5.1-2025-11-13assigned toGPT5_1is not listed in OpenAI's official API documentation for GPT-5.1 models. Whenoai_client.chat.completions.create()is called with this identifier, OpenAI's API will reject the request with a 'model not found' error, preventing theGPT5_1model from being used.💡 Suggested Fix
Update the
GPT5_1model identifier to a valid one from OpenAI's official documentation, such asgpt-5.1orgpt-5.1-chat-latest.🤖 Prompt for AI Agent
Did we get this right? 👍 / 👎 to inform future reviews.
Reference_id: 2766327