Skip to main content
A Tag object includes the tag’s key, and its value. You can use tags to add extra information to a trace or request.

Arguments

string
required
string/numeric/boolean/object/array
required
object
string
The type of tag. Default tag types are tag, log, variable, and feedback.

Instructions

With a traced OpenAI client, after it is created:

Adding tags to a completed trace or completion

After a trace or completion has completed, you may want to add extra tags based on feedback collected later. To do this, store the trace_id and, for completions, the completion_id. Use the tag, log, or feedback functions to add tags, specifying trace_id and completion_id as needed.