你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

FileInfo interface

表示可以调用模型并使用工具的代理。

属性

bytes

文件的大小(以字节为单位)。

createdAt

Unix 时间戳(以秒为单位)表示创建此对象的时间。

filename

文件的名称。

id

可以在 API 终结点中引用的标识符。

object

对象类型,始终为“file”。

purpose

文件的预期用途。

status

文件的状态。 此字段仅在 Azure OpenAI 中可用。

statusDetails

此文件处理失败时包含详细信息的错误消息。 此字段仅在 Azure OpenAI 中可用。

属性详细信息

bytes

文件的大小(以字节为单位)。

bytes: number

属性值

number

createdAt

Unix 时间戳(以秒为单位)表示创建此对象的时间。

createdAt: Date

属性值

Date

filename

文件的名称。

filename: string

属性值

string

id

可以在 API 终结点中引用的标识符。

id: string

属性值

string

object

对象类型,始终为“file”。

object: "file"

属性值

"file"

purpose

文件的预期用途。

purpose: FilePurpose

属性值

status

文件的状态。 此字段仅在 Azure OpenAI 中可用。

status?: FileState

属性值

statusDetails

此文件处理失败时包含详细信息的错误消息。 此字段仅在 Azure OpenAI 中可用。

statusDetails?: string

属性值

string