Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2377,6 +2377,7 @@
"gpt-4-turbo-preview",
"gpt-4",
"gpt-3.5-turbo",
"gpt-5.1",
"gpt-5",
"gpt-5-mini",
"gpt-5-nano",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1549,6 +1549,7 @@
"gpt-4-turbo-preview",
"gpt-4",
"gpt-3.5-turbo",
"gpt-5.1",
"gpt-5",
"gpt-5-mini",
"gpt-5-nano",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1948,6 +1948,7 @@
"gpt-4-turbo-preview",
"gpt-4",
"gpt-3.5-turbo",
"gpt-5.1",
"gpt-5",
"gpt-5-mini",
"gpt-5-nano",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1573,6 +1573,7 @@
"gpt-4-turbo-preview",
"gpt-4",
"gpt-3.5-turbo",
"gpt-5.1",
"gpt-5",
"gpt-5-mini",
"gpt-5-nano",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1204,6 +1204,7 @@
"gpt-4-turbo-preview",
"gpt-4",
"gpt-3.5-turbo",
"gpt-5.1",
"gpt-5",
"gpt-5-mini",
"gpt-5-nano",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1634,6 +1634,7 @@
"gpt-4-turbo-preview",
"gpt-4",
"gpt-3.5-turbo",
"gpt-5.1",
"gpt-5",
"gpt-5-mini",
"gpt-5-nano",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2001,6 +2001,7 @@
"gpt-4-turbo-preview",
"gpt-4",
"gpt-3.5-turbo",
"gpt-5.1",
"gpt-5",
"gpt-5-mini",
"gpt-5-nano",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2974,6 +2974,7 @@
"gpt-4-turbo-preview",
"gpt-4",
"gpt-3.5-turbo",
"gpt-5.1",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

Verify gpt-5.1 model metadata in OpenAI constants.

Ensure that "gpt-5.1" has been properly registered in src/backend/base/langflow/base/models/openai_constants.py with the correct metadata (reasoning, tool_calling flags, etc.). Based on prior learnings, GPT-5 series models are reasoning models, so verify that gpt-5.1 is correctly configured.


🏁 Script executed:

#!/bin/bash
# Verify gpt-5.1 is registered in openai_constants.py

fd -t f "openai_constants.py" | head -1 | xargs grep -n "gpt-5.1" || echo "gpt-5.1 not found in openai_constants"
fd -t f "openai_constants.py" | head -1 | xargs grep -A 2 -B 2 "OPENAI_REASONING_MODEL_NAMES\|OPENAI_CHAT_MODEL_NAMES" | head -30

Length of output: 37


Verify and register gpt-5.1 in openai_constants.py with correct metadata.

GPT-5.1 was released today and is available in the API platform with support for tool calling. However, the script output confirms "gpt-5.1 not found in openai_constants", indicating this model is missing from the codebase even though it's referenced in the JSON starter project.

GPT-5.1 delivers improved reasoning, making it a reasoning model. Based on prior learnings about GPT-5 series configuration, gpt-5.1 should be:

  • Added to OPENAI_REASONING_MODEL_NAMES with reasoning=True
  • Configured with tool_calling=True (since GPT-5.1 has similar training for tool calling)

Register the model in src/backend/base/langflow/base/models/openai_constants.py following the pattern from prior GPT-5 additions (PR #9336), then verify it appears in the dropdown when the JSON starter project loads.

🤖 Prompt for AI Agents
In src/backend/base/langflow/initial_setup/starter_projects/Research Agent.json
around line 2975 the file references "gpt-5.1" but the model is not registered
in src/backend/base/langflow/base/models/openai_constants.py; add an entry for
"gpt-5.1" following the existing GPT-5 additions (see PR #9336): register it in
the model metadata dict(s) with reasoning=True and tool_calling=True, include it
in OPENAI_REASONING_MODEL_NAMES, and add it to any global OpenAI model lists
(e.g., ALL_OPENAI_MODELS or TOOL_CALLING_MODELS) so the loader recognizes it and
it appears in the dropdown when the starter project is loaded.

"gpt-5",
"gpt-5-mini",
"gpt-5-nano",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1263,6 +1263,7 @@
"gpt-4-turbo-preview",
"gpt-4",
"gpt-3.5-turbo",
"gpt-5.1",
"gpt-5",
"gpt-5-mini",
"gpt-5-nano",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1340,6 +1340,7 @@
"gpt-4-turbo-preview",
"gpt-4",
"gpt-3.5-turbo",
"gpt-5.1",
"gpt-5",
"gpt-5-mini",
"gpt-5-nano",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,7 @@
"gpt-4-turbo-preview",
"gpt-4",
"gpt-3.5-turbo",
"gpt-5.1",
"gpt-5",
"gpt-5-mini",
"gpt-5-nano",
Expand Down Expand Up @@ -1485,6 +1486,7 @@
"gpt-4-turbo-preview",
"gpt-4",
"gpt-3.5-turbo",
"gpt-5.1",
"gpt-5",
"gpt-5-mini",
"gpt-5-nano",
Expand Down Expand Up @@ -2988,6 +2990,7 @@
"gpt-4-turbo-preview",
"gpt-4",
"gpt-3.5-turbo",
"gpt-5.1",
"gpt-5",
"gpt-5-mini",
"gpt-5-nano",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1326,6 +1326,7 @@
"gpt-4-turbo-preview",
"gpt-4",
"gpt-3.5-turbo",
"gpt-5.1",
"gpt-5",
"gpt-5-mini",
"gpt-5-nano",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1684,6 +1684,7 @@
"gpt-4-turbo-preview",
"gpt-4",
"gpt-3.5-turbo",
"gpt-5.1",
"gpt-5",
"gpt-5-mini",
"gpt-5-nano",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2059,6 +2059,7 @@
"gpt-4-turbo-preview",
"gpt-4",
"gpt-3.5-turbo",
"gpt-5.1",
"gpt-5",
"gpt-5-mini",
"gpt-5-nano",
Expand Down Expand Up @@ -2784,6 +2785,7 @@
"gpt-4-turbo-preview",
"gpt-4",
"gpt-3.5-turbo",
"gpt-5.1",
"gpt-5",
"gpt-5-mini",
"gpt-5-nano",
Expand Down Expand Up @@ -3509,6 +3511,7 @@
"gpt-4-turbo-preview",
"gpt-4",
"gpt-3.5-turbo",
"gpt-5.1",
"gpt-5",
"gpt-5-mini",
"gpt-5-nano",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1155,6 +1155,7 @@
"gpt-4-turbo-preview",
"gpt-4",
"gpt-3.5-turbo",
"gpt-5.1",
"gpt-5",
"gpt-5-mini",
"gpt-5-nano",
Expand Down
2 changes: 1 addition & 1 deletion src/lfx/src/lfx/_assets/component_index.json

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions src/lfx/src/lfx/base/models/openai_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
# Unified model metadata - single source of truth
OPENAI_MODELS_DETAILED = [
# GPT-5 Series
create_model_metadata(
provider="OpenAI",
name="gpt-5.1",
icon="OpenAI",
tool_calling=True,
reasoning=True,
),
create_model_metadata(
provider="OpenAI",
name="gpt-5",
Expand Down
Loading