Skip to content

Conversation

@jason-nance
Copy link
Contributor

Title

Fix an error when using the Langfuse passthrough by moving an argument to the correct function invocation.

Issue

This error:

create_pass_through_route.<locals>.endpoint_func() got an unexpected keyword argument 'query_params' in litellm/proxy/vertex_ai_endpoints/langfuse_endpoints.py in langfuse_proxy_route at line 132

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have Added testing in the tests/litellm/ directory, Adding at least 1 test is a hard requirement - see details
  • I have added a screenshot of my new test passing locally
  • My PR passes all unit tests on make test-unit
  • My PR's scope is as isolated as possible, it only solves 1 specific problem

Type

🐛 Bug Fix

Changes

query_params appears to now be expected as an argument to create_pass_through_route rather than the returned endpoint_func. It is properly merged into the final request query params when passed there, so I've just moved the argument.

Fix error calling Langfuse passthrough endpoint.
@vercel
Copy link

vercel bot commented Dec 8, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
litellm Ready Ready Preview Comment Dec 8, 2025 4:43pm

Copy link
Contributor

@ishaan-jaff ishaan-jaff left a comment

Choose a reason for hiding this comment

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

lgtm

@ishaan-jaff ishaan-jaff merged commit 0c78cd7 into BerriAI:main Dec 8, 2025
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants