Helicone Community Page

Updated 5 months ago

Custom properties not always logging

At a glance

The community member has a custom property that is only logged occasionally when a specific function is called. They are seeing sparse data in the dashboard for this property. The comments suggest that the community member was having issues setting the custom properties correctly, but they seem to have resolved the issue by passing the appropriate headers in their openai.ChatCompletion.create() call. The other community members are glad the issue is resolved and suggest letting them know if the problem occurs again.

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