Skip to content

Support inline file attachments#122

Merged
shawnthapa merged 1 commit intomainfrom
user/sthapa/inline-file-attachments
Mar 27, 2026
Merged

Support inline file attachments#122
shawnthapa merged 1 commit intomainfrom
user/sthapa/inline-file-attachments

Conversation

@shawnthapa
Copy link
Copy Markdown
Contributor

Support inline file attachments

Checklist

  • I have read both the CONTRIBUTING.md and Contributor License Agreement documents.
  • I have created an issue or feature request and received approval from xAI maintainers. (minor changes like fixing typos can skip this step)
  • I have tested my changes locally and they pass all CI checks.
  • I have added necessary documentation or updated existing documentation.

Description

FileContent now supports inline data (plus filename/mime_type) and chat.file() accepts either file_id or data.

Related Issue

N/A.

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Other (please specify)

@shawnthapa shawnthapa requested a review from a team as a code owner March 26, 2026 23:16
@shawnthapa shawnthapa merged commit 2eff6a8 into main Mar 27, 2026
7 checks passed
@shawnthapa shawnthapa deleted the user/sthapa/inline-file-attachments branch March 27, 2026 00:42
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