返回全部动态
OpenAI Node SDK 发布 v7.43.0,Decisions 输入类型变更
原标题:v7.43.0
AI 摘要
OpenAI 发布 openai-node SDK v7.43.0,在次要版本中引入破坏性变更:Live 响应的 Decisions 问题 instructions 字段现在可以是字符串或由文本、图像、JSON 组成的数组,依赖字符串方法(如 trim)的代码可能报错,需先判断类型;Decisions 请求输入还新增消息角色与工具历史项,DecisionInputMessage 变为联合类型。此外包含若干开发依赖升级与兼容性维护。
以上摘要由 AI 生成,可能存在误差。事实请以原文为准。
正文节选
## [7.43.0](https://github.com/openai/openai-node/compare/v7.42.0...v7.43.0) (2026-10-22) ### Features * **api:** **Breaking change in a minor release.** A Live response's Decisions question `instructions` can now be a string or an array of text, image, or JSON parts. Code such as `question.instructions.trim()` can fail when it receives an array; check `typeof question.instructions === 'string'` and handle the array case. Decisions request inputs also accept new message roles and tool-history
发布时间:2026-10-23 05:31
抓取时间:2026-10-23 05:32
来源机构:OpenAI