共用方式為


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