From 604f9689d08da79a4813d8b6d57b2656e84f2df8 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Tue, 18 Jun 2024 12:09:58 -0700 Subject: [PATCH] fix setting langfuse attributes thru header --- docs/my-website/docs/observability/langfuse_integration.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/my-website/docs/observability/langfuse_integration.md b/docs/my-website/docs/observability/langfuse_integration.md index dbd03620dcd..578051d75b2 100644 --- a/docs/my-website/docs/observability/langfuse_integration.md +++ b/docs/my-website/docs/observability/langfuse_integration.md @@ -148,9 +148,10 @@ print(response) You can also pass `metadata` as part of the request header with a `langfuse_*` prefix: ```shell -curl --location 'http://0.0.0.0:4000/chat/completions' \ - --header 'Content-Type: application/json' \ - --header 'langfuse_trace_id: trace-id22' \ +curl --location --request POST 'http://0.0.0.0:4000/chat/completions' \ + --header 'Content-Type: application/json' \ + --header 'Authorization: Bearer sk-1234' \ + --header 'langfuse_trace_id: trace-id2' \ --header 'langfuse_trace_user_id: user-id2' \ --header 'langfuse_trace_metadata: {"key":"value"}' \ --data '{