Why not extend observeOpenAI to support message-level user id? #3443
Closed
derrickstaten
started this conversation in
Ideas
Replies: 1 comment
-
Whoops I guess I can just do this (persisting the new OpenAI client):
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Example from these docs:
Having
userId
at the config level isn't helpful, as I am building a multi-tenant app, meaning many users. It needs to be in thechat.completions.create({})
call, alongsidemessages
,model
, andmax_tokens
.Steps to reproduce
Here's my code:
I was hoping that
user: userId
would work, as it's supported by OpenAI.Expected Results
My traces should have
user
set in the UI found athttps://cloud.langfuse.com/project/PROJECT_ID_HERE/traces
Actual results
My traces do not have
user
set in the UI.Beta Was this translation helpful? Give feedback.
All reactions