Skip to content
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

fix: Send request origin in AgentQL request Headers #6833

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

Conversation

wjwjtf
Copy link

@wjwjtf wjwjtf commented Feb 25, 2025

This pull request includes a small change to the src/backend/base/langflow/components/agentql/agentql_api.py file. The change adds a new header to the build_output method to specify the request origin.

src/backend/base/langflow/components/agentql/agentql_api.py: Added the "X-TF-Request-Origin": "langflow" header to the headers dictionary in the build_output method.

Replacing #6734

@dosubot dosubot bot added the size:XXL This PR changes 1000+ lines, ignoring generated files. label Feb 25, 2025
@github-actions github-actions bot added the bug Something isn't working label Feb 25, 2025
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:XXL This PR changes 1000+ lines, ignoring generated files. labels Feb 25, 2025
@github-actions github-actions bot added bug Something isn't working and removed bug Something isn't working labels Feb 25, 2025
Copy link

codspeed-hq bot commented Feb 26, 2025

CodSpeed Performance Report

Merging #6833 will degrade performances by 29.26%

Comparing wjwjtf:wenjie/send_request_origin_agentql3 (f46361b) with main (8046008)

Summary

⚡ 1 improvements
❌ 1 regressions
✅ 17 untouched benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark BASE HEAD Change
test_cancel_build_with_cancelled_error 250.5 ms 87.7 ms ×2.9
test_cancel_nonexistent_build 9 ms 12.7 ms -29.26%

Copy link
Collaborator

@edwinjosechittilappilly edwinjosechittilappilly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Feb 26, 2025
@github-actions github-actions bot added bug Something isn't working and removed bug Something isn't working labels Feb 26, 2025
@ogabrielluiz ogabrielluiz added this pull request to the merge queue Feb 26, 2025
@ogabrielluiz ogabrielluiz removed this pull request from the merge queue due to a manual request Feb 26, 2025
@github-actions github-actions bot added bug Something isn't working and removed bug Something isn't working labels Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants