Skip to content

feat(aws_base_llm.py): prevents recreating boto3 credentials during high traffic #5704

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

Closed
wants to merge 7 commits into from

Conversation

krrishdholakia
Copy link
Contributor

@krrishdholakia krrishdholakia commented Sep 15, 2024

Title

feat(aws_base_llm.py): prevents recreating boto3 credentials during high traffic

Relevant issues

Leads to 100ms perf boost on locust testing

Bedrock / sagemaker call latency now on par with openai (~50-70ms)
image

Type

🚄 Infrastructure

Changes

  • cache boto3 credentials on simple auth (aws secret access key / aws secret access key id flow) -> only do it in cases where credentials are permanent (no token)

[REQUIRED] Testing - Attach a screenshot of any new tests passing locall

If UI changes, send a screenshot/GIF of working UI fixes

…igh traffic

Leads to 100ms perf boost in local testing
Copy link

vercel bot commented Sep 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
litellm ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 15, 2024 3:18am

…e converse api transformation logic

Make it easier to see how requests are transformed for /converse
@krrishdholakia
Copy link
Contributor Author

Merged to main via #5711

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