-
Notifications
You must be signed in to change notification settings - Fork 6.2k
feat: add default user agent in api request component #7631
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
base: main
Are you sure you want to change the base?
Conversation
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.
Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (1)
src/backend/base/langflow/components/data/api_request.py:121
- Consider adding tests to validate that the default 'User-Agent' header is correctly applied to API requests, ensuring that future changes do not break this behavior.
value=[
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.
same as #7590 (review)
Co-authored-by: Gabriel Luiz Freitas Almeida <[email protected]>
Co-authored-by: Gabriel Luiz Freitas Almeida <[email protected]>
This pull request includes a change to the
APIRequestComponent
class to set a defaultUser-Agent
header value in thevalue
field.src/backend/base/langflow/components/data/api_request.py
: Updated thevalue
field to include a defaultUser-Agent
header with a common browser string.