github openai/openai-go v3.86.0

3 hours ago

3.86.0 (2026-10-23)

Features

  • api: Breaking change in a minor release. Decisions and Live question Instructions fields now use typed unions to support a string or a list of text, image, or JSON parts. Existing Go code that assigns a string directly, such as Instructions: "check", no longer compiles; wrap it in the field’s union type, for example Instructions: openai.DecisionNewParamsQuestionPredicateInstructionsUnion{OfString: openai.String("check")}. For Live responses, check question.Instructions.JSON.OfString.Valid() before reading question.Instructions.OfString, and handle question.Instructions.OfArrayOfDecisionQuestionInputPartUnion for the list case. Decisions request inputs also support additional message roles and tool-history items; update code that assumes it knows every input type. String instructions remain supported through the union, and the existing DecisionInputMessageParam user-message input form still works. (#1147) (bc63762)

Chores

Don't miss a new openai-go release

NewReleases is sending notifications on new releases.