Skip to content

[Files] Expose optional ExpiresAfter for OpenAIFileClient.UploadFileAsync() #896

@ShivangiReja

Description

@ShivangiReja

Latest spec added a new property in InternalFileUploadOptions: ExpiresAfter.

Today, UploadFileAsync is GA and follows our existing OpenAI SDK pattern:

  • Required properties are exposed as method parameters
  • Optional properties live in an options class

That pattern explains why the current InternalFileUploadOptions properties are exposed as UploadFileAsync parameters (they were all required). Now ExpiresAfter is optional, so we need to decide how to expose it without creating inconsistency or churn.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions