-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Update s3 cache to support folder #1494
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
requested changes, can you add this param to docs too
litellm/integrations/s3.py
Outdated
@@ -122,8 +124,9 @@ def log_event(self, kwargs, response_obj, start_time, end_time, print_verbose): | |||
pass | |||
|
|||
s3_object_key = ( | |||
(self.s3_path.rstrip('/') + '/' if self.s3_path else '') + |
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.
any reson why s3 path should be part of the key ?
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.
I believe that is the way you point to a folder in boto3.
Could not find better docs then here..
Let me know if this works :) |
Also updated docs! |
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 ! thanks for the contribution !
resolves #1493