Skip to content

Commit a1188e0

Browse files
fix: templated did not auto update the model and api key fields (#8697)
* update model * update financial template --------- Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
1 parent f4bbfd0 commit a1188e0

4 files changed

Lines changed: 27 additions & 27 deletions

File tree

src/backend/base/langflow/base/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@
4343
]
4444
SKIPPED_FIELD_ATTRIBUTES = ["advanced"]
4545
ORJSON_OPTIONS = orjson.OPT_INDENT_2 | orjson.OPT_SORT_KEYS | orjson.OPT_OMIT_MICROSECONDS
46-
SKIPPED_COMPONENTS = {"LanguageModelComponent"}
46+
SKIPPED_COMPONENTS = {"LanguageModelComponent", "Agent"}

src/backend/base/langflow/initial_setup/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def update_projects_components_with_latest_component_versions(project_data, all_
6767
node_data["template"]["code"] = latest_template["code"]
6868
# skip components that are having dynamic values that need to be persisted for templates
6969

70-
if node_data.get("key") in SKIPPED_COMPONENTS:
70+
if node_type in SKIPPED_COMPONENTS:
7171
continue
7272

7373
is_tool_or_agent = node_data.get("tool_mode", False) or node_data.get("key") in {

src/backend/base/langflow/initial_setup/starter_projects/Financial Agent.json

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2483,9 +2483,9 @@
24832483
"api_key": {
24842484
"_input_type": "SecretStrInput",
24852485
"advanced": false,
2486-
"display_name": "OpenAI API Key",
2486+
"display_name": "SambaNova API Key",
24872487
"dynamic": false,
2488-
"info": "The OpenAI API Key to use for the OpenAI model.",
2488+
"info": "The SambaNova API Key to use for the SambaNova model.",
24892489
"input_types": [],
24902490
"load_from_db": true,
24912491
"name": "api_key",
@@ -2726,17 +2726,20 @@
27262726
"input_types": [],
27272727
"name": "model_name",
27282728
"options": [
2729-
"gpt-4o-mini",
2730-
"gpt-4o",
2731-
"gpt-4.1",
2732-
"gpt-4.1-mini",
2733-
"gpt-4.1-nano",
2734-
"gpt-4.5-preview",
2735-
"gpt-4-turbo",
2736-
"gpt-4-turbo-preview",
2737-
"gpt-4",
2738-
"gpt-3.5-turbo",
2739-
"o1"
2729+
"Meta-Llama-3.3-70B-Instruct",
2730+
"Meta-Llama-3.1-8B-Instruct",
2731+
"Meta-Llama-3.1-70B-Instruct",
2732+
"Meta-Llama-3.1-405B-Instruct",
2733+
"DeepSeek-R1-Distill-Llama-70B",
2734+
"DeepSeek-R1",
2735+
"Meta-Llama-3.2-1B-Instruct",
2736+
"Meta-Llama-3.2-3B-Instruct",
2737+
"Llama-3.2-11B-Vision-Instruct",
2738+
"Llama-3.2-90B-Vision-Instruct",
2739+
"Qwen2.5-Coder-32B-Instruct",
2740+
"Qwen2.5-72B-Instruct",
2741+
"QwQ-32B-Preview",
2742+
"Qwen2-Audio-7B-Instruct"
27402743
],
27412744
"options_metadata": [],
27422745
"placeholder": "",
@@ -3261,9 +3264,9 @@
32613264
"api_key": {
32623265
"_input_type": "SecretStrInput",
32633266
"advanced": false,
3264-
"display_name": "OpenAI API Key",
3267+
"display_name": "Sambanova API Key",
32653268
"dynamic": false,
3266-
"info": "The OpenAI API Key to use for the OpenAI model.",
3269+
"info": "The SambaNova API Key to use for the SambaNova model.",
32673270
"input_types": [],
32683271
"load_from_db": true,
32693272
"name": "api_key",

src/backend/base/langflow/initial_setup/starter_projects/Research Translation Loop.json

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1587,16 +1587,13 @@
15871587
"info": "Select the model to use",
15881588
"name": "model_name",
15891589
"options": [
1590-
"gpt-4o-mini",
1591-
"gpt-4o",
1592-
"gpt-4.1",
1593-
"gpt-4.1-mini",
1594-
"gpt-4.1-nano",
1595-
"gpt-4.5-preview",
1596-
"gpt-4-turbo",
1597-
"gpt-4-turbo-preview",
1598-
"gpt-4",
1599-
"gpt-3.5-turbo"
1590+
"claude-opus-4-20250514",
1591+
"claude-sonnet-4-20250514",
1592+
"claude-3-7-sonnet-latest",
1593+
"claude-3-5-sonnet-latest",
1594+
"claude-3-5-haiku-latest",
1595+
"claude-3-opus-latest",
1596+
"claude-3-sonnet-20240229"
16001597
],
16011598
"options_metadata": [],
16021599
"placeholder": "",

0 commit comments

Comments
 (0)