Helicone Community Page

d
davis
Offline, last seen last week
Joined January 7, 2025
Hi, I'm trying to set up helicone to work with litellm. Have the following code:

Plain Text
resp = completion(
        model="azure/gpt-4o-mini",
        messages=[
            {"role": "system", "content": system_prompt},
            {"role": "user", "content": user_prompt}
        ],
        response_format=PoliticalBiasScore,
        fallbacks=["gpt-4o-mini"],
        user="varsity_topstories_scorearticlepoliticalbias",
        metadata={
            "user": "varsity_topstories_scorearticlepoliticalbias",
            "Helicone-Property-User": "varsity_topstories_scorearticlepoliticalbias"
        }
    )


which seems to be hit or miss on if it tags this to a user at all. What is the best way to do this - thank you!
4 comments
J
d