Skip to content

docs(providers): add xAI batches and files - #1734

Merged
mateo-berri merged 1 commit into
mainfrom
litellm_xai_batches_docs
Sep 25, 2026
Merged

mateo-berri merged 1 commit into
mainfrom
litellm_xai_batches_docs

Conversation

@mateo-berri

@mateo-berri mateo-berri commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

TLDR

BerriAI/litellm#42812 added native xAI files and batches: /v1/files and /v1/batches with provider=xai on the proxy, and custom_llm_provider="xai" in the Python SDK. This adds the provider page docs/providers/xai_batches.md in the shape of the Mistral batches page, lists xAI in the feature table and the supported providers table on docs/batches.md, and puts the new page under the xAI sidebar category

Every behavior the page describes was observed on the live round trip that PR ran against xAI: the status derived from xAI's request counters, output_file_id being the batch id with results served from /v1/files/{batch_id}/content, the day-resolution timestamps, per-line url routing, the full-page walk on the file list, and the spend recorded on the first retrieve of a completed batch under <batch_id>_batch_cost

node scripts/check-writing-style.js and python3 scripts/check-docs.py docs pass on the branch


Note

Low Risk
Documentation-only changes with no runtime, security, or data-handling impact.

Overview
Documents xAI as a supported provider for LiteLLM’s OpenAI-compatible Files and Batches APIs (provider=xai on the proxy, custom_llm_provider="xai" in the SDK).

Adds docs/providers/xai_batches.md with proxy config.yaml (files_settings + model_list), curl flows for upload/create/poll/download/list/cancel/delete, Python SDK examples, and notes on xAI-specific behavior (derived batch status, output_file_id = batch id, day-resolution timestamps, per-line url routing, paginated result download, per-line batch cost tracking on first retrieve).

Updates docs/batches.md to list xAI in the feature and provider-native batch tables with a link to the new page, and registers the page under the xAI section in sidebars.js.

Reviewed by Cursor Bugbot for commit 1590e7f. Bugbot is set up for automated code reviews on this repo. Configure here.

@vercel

vercel Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
litellm Ready Ready Preview Sep 25, 2026 10:48pm UTC

Request Review

@mateo-berri

Copy link
Copy Markdown
Contributor Author

bugbot run

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 1590e7f. Configure here.

@mateo-berri
mateo-berri merged commit 7241e01 into main Sep 25, 2026
5 checks passed
@mateo-berri
mateo-berri deleted the litellm_xai_batches_docs branch September 25, 2026 22:50

This branch was previously deployed

1 inactive deployment
Preview — 1590e7f1 Deployed Sep 25, 2026 by vercel[bot]
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.

1 participant