openai.internal._event_key

(internal) Which CONTENT PART an event belongs to. `item_id` is the API's own item key (`output_index` is the fallback for events that omit it), and `content_index` distinguishes the parts within one item: a message may carry several text parts, and keying by item alone would let a delta on part 0 suppress the `output_text.done` that is the only delivery of part 1.

Reference version

Signature

function openai.internal._event_key(event: openai.internal.OaStreamEvent) -> string

(internal) Which CONTENT PART an event belongs to. item_id is the API's own item key (output_index is the fallback for events that omit it), and content_index distinguishes the parts within one item: a message may carry several text parts, and keying by item alone would let a delta on part 0 suppress the output_text.done that is the only delivery of part 1.

Source:<builtin>/openai/ns_internal/responses.bamlbytes 3955239875