Skip to content

docs(bedrock): document listing and deleting batch files, the S3 permissions they need, and purpose semantics - #1264

Open
devin-ai-integration[bot] wants to merge 4 commits into
mainfrom
litellm_bedrock_files_list_delete_docs
Open

devin-ai-integration[bot] wants to merge 4 commits into
mainfrom
litellm_bedrock_files_list_delete_docs

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

TLDR

docs/providers/bedrock_batches.md never said that GET /v1/files and DELETE /v1/files/{file_id} work for Bedrock batch files, which S3 permissions the credentials need for them, or what each purpose lists. This adds a "5. List and delete files" step with Python and curl tabs, an S3 permissions paragraph under the required parameters (s3:PutObject, s3:GetObject, s3:ListBucket, s3:DeleteObject, scoped to the three key prefixes LiteLLM writes under), an s3_output_bucket_name row in the optional parameters, the purpose semantics (batch inputs, batch_output results, anything else empty), the 10,000 file ceiling, and a note that listing by target_model_names and deleting by ?model= are deployment-wide for any key allowed to call the model, with managed file ids as the per-user alternative

Companion to BerriAI/litellm#39836 (LIT-6975), which ships the delete and list implementation; publish this once that PR is in a release

Caveats (if any)

Link to Devin session: https://app.devin.ai/sessions/5ecb66321a714eb980b5f86f856e9e7a
Open in Devin Desktop: https://app.devin.ai/desktop/session/5ecb66321a714eb980b5f86f856e9e7a?variant=devin
Requested by: @mateo-berri


Note

Low Risk
Markdown documentation only; no application or infrastructure code changes.

Overview
Documentation-only update to bedrock_batches.md so Bedrock batch operators know how GET /v1/files and DELETE /v1/files/{file_id} behave and what AWS permissions to grant.

Adds an S3 permissions blurb (Put/Get/List/Delete on configured buckets, scoped to LiteLLM key prefixes) and documents optional s3_output_bucket_name. New §5 List and delete files covers purpose=batch vs batch_output, OpenAI-shaped pagination limits (10k cap, no limit/after), deployment-wide listing via target_model_names, delete rules for managed ids vs raw s3:// (admin + ?model=), plus Python and curl examples.

Companion docs for the list/delete implementation in a separate PR; no runtime code changes here.

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

@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@vercel

vercel Bot commented Sep 8, 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 8, 2026 5:17am UTC

Request Review

@mateo-berri

Copy link
Copy Markdown
Contributor

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.

Stale Bugbot comment from a previous run.

@mateo-berri

Copy link
Copy Markdown
Contributor

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 300cccc. Configure here.

This branch was previously deployed

1 inactive deployment
Preview — 300ccccd Deployed Sep 8, 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