模型行为官方发布自动监测

OpenAI Python SDK v3.37.0

OpenAI Python SDK v3.37.0 introduces a breaking change to Decisions types, expanding question instructions to include structured parts and adding message roles to input types.

原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。

人类阅读

为什么值得关注

OpenAI Python SDK version 3.37.0 has been released with breaking changes to Decisions types. In Live response models, question instructions are no longer strictly strings and can now be delivered as a list of structured text, image, or JSON parts. Callers performing string operations must verify the type using isinstance(question.instructions, str) and implement handling for the structured representation. Additionally, Decisions request inputs have been expanded to include more message roles and tool-history items, necessitating updates to exhaustive pattern matching or type checks. Existing string-based instructions and DecisionInputMessageParam user-message inputs remain supported.

Agent 解析

可执行摘要

OpenAI Python SDK v3.37.0 introduces breaking changes to Decisions types. In Live response models, question.instructions can now be a list of structured text, image, or JSON parts in addition to a string. Request input types now support additional message roles and tool-history items.

Agent 实用度
94/100
可信度
96%
机器格式
JSON + Markdown
下一步

开发者应核对什么

  • Update Live response handling to check isinstance(question.instructions, str) before string operations, and implement handling for structured text, image, or JSON parts.
  • Update exhaustive type checks and pattern matches on Decisions request input types to accommodate additional message roles and tool-history items.
分类

标签与路由

openaisdkmodels
相关信号

继续阅读