Helicone Community Page

Updated 4 months ago

Custom properties not always logging

I have a custom property that only gets logged on occasion. It only exists in a single function. When that function is called, sometimes the property gets logged, and sometimes it doesn't. What I see in the dashboard under the column for that property, is just very sparse.
C
H
5 comments
Hi, please share how you are setting these custom properties.

Also, if you are using caching, we do not store properties when you hit the cache.
Hi there, they seem to be working now. I was just passing headers in
Plain Text
openai.ChatCompletion.create( 

...
        stream=True,
        max_tokens=4000,
        headers = {
            "Helicone-Auth": "Bearer KEY",
            "Helicone-Retry-Enabled": "true",
            "Helicone-User-Id": uuid,
            "Helicone-Property-Function": "chat_memory()",
            "Helicone-Property-Agent": agent,
            "Helicone-RateLimit-Policy": hcone_rate_limit(),
            "Helicone-Request-Id": hcone_msg_id,
            "Helicone-Property-FlagMsg": '',
            "Helicone-Property-rawQuery": query
        }
I'm glad it is working now. Your properties seem to be set correctly.
Let us know if you experience it again!
Add a reply
Sign up and join the conversation on Discord