Skip to content

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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

edwinjosechittilappilly
Copy link
Collaborator

This pull request includes a change to the APIRequestComponent class to set a default User-Agent header value in the value field.

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Apr 15, 2025
Copy link
Contributor

@Copilot Copilot AI left a 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=[

@dosubot dosubot bot added the enhancement New feature or request label Apr 15, 2025
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Apr 15, 2025
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Apr 30, 2025
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Apr 30, 2025
Copy link
Collaborator

@jordanrfrazier jordanrfrazier left a 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)

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Apr 30, 2025
@dosubot dosubot bot removed the lgtm This PR has been approved by a maintainer label Apr 30, 2025
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Apr 30, 2025
@github-actions github-actions bot removed the enhancement New feature or request label Apr 30, 2025
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Apr 30, 2025
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Apr 30, 2025
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels May 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants