You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: metadata.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ All predefined keys should be of type String, with max-length as 128 characters.
6
6
7
7
## Proxy Metadata
8
8
9
-
To include metadata in the proxy requests, you can add an `x-portkey-meta` header with a JSON string containing your metadata. Portkey will parse the JSON object and make it available for filtering.
9
+
To include metadata in the proxy requests, you can add an `x-portkey-metadata` header with a JSON string containing your metadata. Portkey will parse the JSON object and make it available for filtering.
10
10
11
11
For the JavaScript library, use the following sample code:
12
12
@@ -20,7 +20,7 @@ const configuration = new Configuration({
20
20
headers: {
21
21
"x-portkey-api-key":"<YOUR PORTKEY API KEY>", // Can be obtained from your account
22
22
"x-portkey-mode":"proxy openai", // Instructs Portkey to proxy your request to OpenAI
23
-
"x-portkey-meta":JSON.stringify({"_environment":"production", "foo":"abc", "bar":"def"}) //Enables filtering on _environment
23
+
"x-portkey-metadata":JSON.stringify({"_environment":"production", "foo":"abc", "bar":"def"}) //Enables filtering on _environment
0 commit comments