Skip to content

fix: make file content part fields optional and add file_id#326

Merged
robert-j-y merged 1 commit intomainfrom
fix/file-content-part-optional-fields
Jan 8, 2026
Merged

fix: make file content part fields optional and add file_id#326
robert-j-y merged 1 commit intomainfrom
fix/file-content-part-optional-fields

Conversation

@robert-j-y
Copy link
Contributor

Description

Makes filename and file_data fields optional in ChatCompletionContentPartFile and adds file_id field for OpenAI file uploads support. This aligns the type with the API spec.

Checklist

  • I have run pnpm stylecheck and pnpm typecheck
  • I have run pnpm test and all tests pass
  • I have added tests for my changes (if applicable)
  • I have updated documentation (if applicable)

Changeset

  • I have run pnpm changeset to create a changeset file

Note: A changeset is required for your changes to trigger a release. If your PR only contains docs, tests, or CI changes that don't need a release, run pnpm changeset --empty instead.


Note: Tests and documentation are not applicable since this is a type-only change that makes fields optional (non-breaking).

@robert-j-y robert-j-y merged commit 9f7a125 into main Jan 8, 2026
1 check passed
@robert-j-y robert-j-y deleted the fix/file-content-part-optional-fields branch January 8, 2026 23:58
@github-actions github-actions bot mentioned this pull request Jan 8, 2026
kesavan-byte pushed a commit to osm-API/ai-sdk-provider that referenced this pull request Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants