Driftwatch

OpenAI / OpenAI API /

Breaking

Response field annotations removed

What changed

Reads of this field return undefined, and the failure surfaces wherever that value is used rather than at the call.

Affects ChatCompletionMessageList reachable from 1 operation.

Who is affected

Code that reads OpenAI's ChatCompletionMessageList objects, used by 1 OpenAI operation.

Before and after

WhereBeforeAfter
ChatCompletionMessageList.data[].annotationspresentabsent
ChatCompletionMessageList.data[].audiopresentabsent
ChatCompletionMessageList.data[].function_callpresentabsent
ChatCompletionMessageList.data[].refusalpresentabsent
ChatCompletionMessageList.data[].tool_callspresentabsent

Code that breaks

// response.data[0].annotations is now undefined
const annotations = response.data[0].annotations;

Based on OpenAI’s published API specification. How severity is decided.