Repository navigation
docs(providers): add xAI batches and files - #1734
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Author
|
bugbot run |
There was a problem hiding this comment.
✅ 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.
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TLDR
BerriAI/litellm#42812 added native xAI files and batches:
/v1/filesand/v1/batcheswithprovider=xaion the proxy, andcustom_llm_provider="xai"in the Python SDK. This adds the provider pagedocs/providers/xai_batches.mdin the shape of the Mistral batches page, lists xAI in the feature table and the supported providers table ondocs/batches.md, and puts the new page under the xAI sidebar categoryEvery 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_idbeing the batch id with results served from/v1/files/{batch_id}/content, the day-resolution timestamps, per-lineurlrouting, the full-page walk on the file list, and the spend recorded on the first retrieve of a completed batch under<batch_id>_batch_costnode scripts/check-writing-style.jsandpython3 scripts/check-docs.py docspass on the branchNote
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=xaion the proxy,custom_llm_provider="xai"in the SDK).Adds
docs/providers/xai_batches.mdwith proxyconfig.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-lineurlrouting, paginated result download, per-line batch cost tracking on first retrieve).Updates
docs/batches.mdto 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 insidebars.js.Reviewed by Cursor Bugbot for commit 1590e7f. Bugbot is set up for automated code reviews on this repo. Configure here.