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

[Feature]: Support for Configurable Langfuse Trace and Generation Parameters in Config.yaml #6756

Open
ZzzzRyan opened this issue Nov 15, 2024 · 2 comments
Labels
enhancement New feature or request feb 2025 help wanted Extra attention is needed langfuse

Comments

@ZzzzRyan
Copy link

The Feature

Enable setting default values for langfuse's parameters such as trace_name and generation_name, for different models/providers within config.yaml

Motivation, pitch

I use the litellm proxy and langfuse to record multiple LLM providers' tokens and cost. As an LLM user utilizing third-party clients to call APIs through the litellm proxy, I have difficulty including parameters like trace_name and generation_name in each request.

It would be beneficial to allow these parameters to be configured directly in config.yaml for better logging and differentiation of provider usage and costs. Can be overridden by request parameters if provided by the user.

Twitter / LinkedIn details

No response

@ZzzzRyan ZzzzRyan added the enhancement New feature or request label Nov 15, 2024
@ishaan-jaff ishaan-jaff added help wanted Extra attention is needed feb 2025 langfuse labels Feb 7, 2025
@ishaan-jaff
Copy link
Contributor

@ZzzzRyan can you show me how you'd want to define this on the config.yaml ?

@ra0x3
Copy link

ra0x3 commented Feb 11, 2025

@ishaan-jaff Maybe something like:

# ...
  - model_name: gpt-3.5-turbo
    litellm_params:
      model: azure/chatgpt-v-2
      api_base: https://openai-gpt-4-test-v-1.openai.azure.com/
    langfuse_includes:
      trace_name: XXX
      generation_name: XXX
# ...
  • I don't feel strongly about the naming but hopefully this conveys the gist. Just including some discrete set of key/value params on a per-model basis and then just passing those to Langfuse 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feb 2025 help wanted Extra attention is needed langfuse
Projects
None yet
Development

No branches or pull requests

3 participants