python 新增响应生成与输入令牌统计
python SDK 新增响应生成和输入令牌统计,可处理文本或图像输入;创建音频代理时现在必须提供配置。
之前创建音频代理时,configuration 可省略或传入 None。
现在创建音频代理时必须传入 AudioAgentConfigurationRequest。
你需要知道的
- 响应接口支持文本或图像输入,输出可包含文本、推理和函数调用。
- 输入令牌统计接口可在不生成响应的情况下统计请求输入令牌。
- 音频代理和会话配置新增 expressiveness,取值范围为 1 到 5。
原文怎么说
pydantic.Field(deprecated='warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible.')] - PublicAuthenticationMethodTypedDict.has_default_credentials: bool -> NotRequired[bool] API changes Breaking changes - sdk.audio.agents.create() now requires configuration, a models.AudioAgentConfigurationRequest. It can no longer be omitted or passed as None. - models.Format, the type of OCRTableObject.format_, is renamed to models.FormatEnum. Imports of Format
github.com · 发布于 2026-11-24 · 打开原文 ↗