-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
(feat)Litellm x twelvelabs bedrock[Async Invoke Support] #14871
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub.
|
merge main
merge main
merge main
@Sameerlite can you rebase with main, so we can see it with working tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reviewed
```python | ||
from litellm import embedding | ||
|
||
# Text embedding with async-invoke |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please update interface to this
# Text embedding with async-invoke
response = embedding(
model="bedrock/async_invoke/us.twelvelabs.marengo-embed-2-7-v1:0",
input=["Hello world from LiteLLM async invoke!"],
aws_region_name="us-east-1",
output_s3_uri="s3://your-bucket/async-invoke-output/",
# new litellm param
input_type: "text"
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the code as requested
bump on this? @Sameerlite |
merge main
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Title
Add AWS Bedrock Async-Invoke Support for Embedding Models
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
tests/litellm/
directory, Adding at least 1 test is a hard requirement - see detailsmake test-unit
Type
🆕 New Feature

Changes
Summary
Adds support for AWS Bedrock's async-invoke feature for embedding models, enabling asynchronous processing of large media files (video, audio) and background embedding generation.
Key Features
bedrock/async_invoke/
for TwelveLabs Marengo models_hidden_params
for status monitoringretrieve_batch()
for job status checkingUsage Examples
Basic Async-Invoke
Video/Audio Processing
Job Status Monitoring
Files Changed
litellm/llms/bedrock/embed/embedding.py
- Core async-invoke logiclitellm/llms/bedrock/embed/twelvelabs_marengo_transformation.py
- TwelveLabs-specific handlinglitellm/batches/main.py
- Batch API integration for status checkinglitellm/types/utils.py
- Response object updatestests/test_litellm/llms/bedrock/embed/test_bedrock_async_invoke_embedding.py
- Comprehensive test suitedocs/providers/bedrock_embedding.md
- Complete documentationThis feature enables efficient processing of large media files and background embedding generation, making LiteLLM more suitable for production workloads with heavy media processing requirements.