feat/autofill
Merged
WA
2y ago+725+725+012345678901234567890123456789-168-168-012345678901234567890123456789
This PR is part of a stack, managed by mrge:
main(default branch)- #235: Added Linear Block
- #236: feat/autofill ⬅️ Current PR (View on mrge)
- feat(autofill): autofill api keys for tools once they are set once
- added setting to settings for envvar autofill, removed from agent block since it depends on the model selected
- add in api key autofill for agent blocks based on existing model provider mapping
- add tooltips for general settings
Description
Added a setting to autofill API keys if there are any available. For the agent block, we intelligently select the API key based on the model provider for the selected model.
Type of change
Please delete options that are not relevant.
- New feature (non-breaking change which adds functionality)
How Has This Been Tested?
Ran through many scenarios locally and ensured that if we don't have an API key for that tool or block (or if the setting is disabled), we don't fill in any value.
Checklist:
- My code follows the style guidelines of this project
- I have performed a self-review of my own code
- I have commented my code, particularly in hard-to-understand areas
- I have added tests that prove my fix is effective or that my feature works
- All tests pass locally and in CI (
npm test) - My changes generate no new warnings
- Any dependent changes have been merged and published in downstream modules
- I have updated version numbers as needed (if needed)
Security Considerations:
- My changes do not introduce any new security vulnerabilities
- I have considered the security implications of my changes