-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
feat: enhance Anthropic component UI and validation #5690
feat: enhance Anthropic component UI and validation #5690
Conversation
The following improvements were made to the Anthropic component: - Made API key field required to ensure proper configuration - Replaced FloatInput with SliderInput for temperature parameter to improve user experience - Added step control (0.01) for more precise temperature adjustments Co-authored-by: Vinícios Batista da Silva <[email protected]>
CodSpeed Performance ReportMerging #5690 will degrade performances by 31.27%Comparing Summary
Benchmarks breakdown
|
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.
This Could break the agents
Latest updated changes Refer PR: #5720
Thank you @carlosrcoelho for tagging me! |
Head branch was pushed to by a user without write access
This change ensures that the Anthropic API key is required for the component to work properly, preventing potential runtime errors when the key is missing. Co-authored-by: Vinícios Batista da Silva <[email protected]>
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.
LGTM
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.
lgtm
Pull Request is not mergeable
The following improvements were made to the Anthropic component:
This pull request focuses on updating the requirements for inputs in the
AnthropicModelComponent
and related configurations. The key changes include making theapi_key
a required input and ensuring that this requirement is reflected in the initial setup for starter projects.Updates to input requirements:
src/backend/base/langflow/components/models/anthropic.py
: Theapi_key
input is now marked as required in theAnthropicModelComponent
.Changes in initial setup configuration:
src/backend/base/langflow/initial_setup/starter_projects/Custom Component Maker.json
: Addedapi_key
to the list of required inputs for themodel_output
component.src/backend/base/langflow/initial_setup/starter_projects/Custom Component Maker.json
: Updated therequired
field for theapi_key
input totrue
.src/backend/base/langflow/initial_setup/starter_projects/Custom Component Maker.json
: Updated the default code value for theAnthropicModelComponent
to include therequired
attribute for theapi_key
input.