AssistantsModelFactory.OpenAIFile Method

Definition

Initializes a new instance of OpenAIFile.

public static Azure.AI.OpenAI.Assistants.OpenAIFile OpenAIFile (string id = default, int size = 0, string filename = default, DateTimeOffset createdAt = default, Azure.AI.OpenAI.Assistants.OpenAIFilePurpose purpose = default);
static member OpenAIFile : string * int * string * DateTimeOffset * Azure.AI.OpenAI.Assistants.OpenAIFilePurpose -> Azure.AI.OpenAI.Assistants.OpenAIFile
Public Shared Function OpenAIFile (Optional id As String = Nothing, Optional size As Integer = 0, Optional filename As String = Nothing, Optional createdAt As DateTimeOffset = Nothing, Optional purpose As OpenAIFilePurpose = Nothing) As OpenAIFile

Parameters

id
String

The identifier, which can be referenced in API endpoints.

size
Int32

The size of the file, in bytes.

filename
String

The name of the file.

createdAt
DateTimeOffset

The Unix timestamp, in seconds, representing when this object was created.

purpose
OpenAIFilePurpose

The intended purpose of a file.

Returns

A new OpenAIFile instance for mocking.

Applies to