-
Notifications
You must be signed in to change notification settings - Fork 9.8k
fix: preserve api key configuration on flow export #12129
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
Merged
Merged
Changes from 24 commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
2b71625
fix: preserve api key configuration on flow export
HimavarshaVS 1169007
fix individual component's field
HimavarshaVS 07cbd2a
Merge branch 'release-1.8.1' into fix-api-key-components
HimavarshaVS 5b63df4
[autofix.ci] apply automated fixes
autofix-ci[bot] cbf321b
unhide var name
HimavarshaVS bf41739
Merge branch 'fix-api-key-components' of https://github.com/langflow-…
HimavarshaVS 7853eb3
[autofix.ci] apply automated fixes
autofix-ci[bot] 46fbbd5
[autofix.ci] apply automated fixes (attempt 2/3)
autofix-ci[bot] 10d0bcd
Merge branch 'release-1.8.1' into fix-api-key-components
HimavarshaVS 6709d70
fetch relevant provider keys
HimavarshaVS 742b394
Merge branch 'fix-api-key-components' of https://github.com/langflow-…
HimavarshaVS 61bdebc
update starter projects
HimavarshaVS bed96e3
update based on env var
HimavarshaVS 40a7df7
[autofix.ci] apply automated fixes
autofix-ci[bot] e84b3fd
fetch only env variables
HimavarshaVS 5d2b7ff
Merge branch 'fix-api-key-components' of https://github.com/langflow-…
HimavarshaVS 005d86a
[autofix.ci] apply automated fixes
autofix-ci[bot] fd695d2
[autofix.ci] apply automated fixes (attempt 2/3)
autofix-ci[bot] 1af3178
update starter projects
HimavarshaVS c4cf246
Merge branch 'fix-api-key-components' of https://github.com/langflow-…
HimavarshaVS 0b396e9
fix ruff errors
HimavarshaVS ee09120
[autofix.ci] apply automated fixes
autofix-ci[bot] 3682a2d
[autofix.ci] apply automated fixes (attempt 2/3)
autofix-ci[bot] e31a6b0
Merge branch 'release-1.8.1' into fix-api-key-components
HimavarshaVS 8c4b4b8
don't remove api keys if chosen by user
HimavarshaVS 5d49d33
Merge branch 'fix-api-key-components' of https://github.com/langflow-…
HimavarshaVS 407883d
remove redundant code
HimavarshaVS 73bbe78
[autofix.ci] apply automated fixes
autofix-ci[bot] a6cc000
fix update build config
HimavarshaVS 611a505
Merge branch 'fix-api-key-components' of https://github.com/langflow-…
HimavarshaVS 181395d
remove api keys refactor
HimavarshaVS 8492f3c
only load values when exists in db
HimavarshaVS b3e81ab
modify other components
HimavarshaVS 214a344
[autofix.ci] apply automated fixes
autofix-ci[bot] 42b70da
[autofix.ci] apply automated fixes (attempt 2/3)
autofix-ci[bot] 41e0cdb
Merge branch 'release-1.8.1' into fix-api-key-components
erichare 4ebb1d3
Template updates
erichare d84ff61
[autofix.ci] apply automated fixes
autofix-ci[bot] d49c131
Component index update
erichare caa2b4e
Fix frontend test
erichare cffaafd
[autofix.ci] apply automated fixes
autofix-ci[bot] 6a2f922
[autofix.ci] apply automated fixes (attempt 2/3)
autofix-ci[bot] 9c8a8d1
Merge branch 'release-1.8.1' into fix-api-key-components
HimavarshaVS 64165d6
preserve var names
HimavarshaVS 1531a0e
[autofix.ci] apply automated fixes
autofix-ci[bot] b7d99d8
update caution for saving api keys
HimavarshaVS 9bc95dd
[autofix.ci] apply automated fixes
autofix-ci[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
src/backend/base/langflow/initial_setup/starter_projects/Basic Prompt Chaining.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
⚡️Codeflash found 11% (0.11x) speedup for
_get_provider_from_templateinsrc/backend/base/langflow/api/utils/core.py⏱️ Runtime :
345 microseconds→312 microseconds(best of103runs)📝 Explanation and details
The optimized code splits the compound conditional
isinstance(raw, list) and len(raw) > 0 and isinstance(raw[0], dict)into separate checks, replacing the explicit length test with a try/except block aroundraw[0]. This eliminates one call tolen()(which invokes the list's__len__method) and one redundantraw[0]access in the success path—the original code indexedraw[0]twice (once in the condition, once in the return statement) while the optimized version indexes it once and binds it tofirst. Line profiler data shows the compound condition consumed 15.8% of original runtime; the refactored checks now distribute that cost across lighter operations. The 10% speedup comes from reducing method dispatch overhead and eliminating duplicate indexing, with no change in behavior or exceptions raised.✅ Correctness verification report:
🌀 Click to see Generated Regression Tests
To test or edit this optimization locally
git merge codeflash/optimize-pr12129-2026-03-11T14.39.17