Skip to content

Commit af31951

Browse files
committed
fix minio
1 parent 3e0c2c3 commit af31951

File tree

2 files changed

+22
-8
lines changed

2 files changed

+22
-8
lines changed

litellm/integrations/minio.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,12 @@ def _log_event(self, kwargs, response_obj, start_time, end_time):
229229
print_verbose(f"\nMinIO Logger - Logging payload = {payload_str}")
230230

231231
# Upload to MinIO using simple boto3 put_object
232+
verbose_logger.debug(
233+
f"minio logger put_object args: Bucket={self.bucket_name}, "
234+
f"Key={s3_object_key}, "
235+
f"Body=<{len(payload_str)} bytes>, "
236+
f"ContentType=application/json"
237+
)
232238
response = self.s3_client.put_object(
233239
Bucket=self.bucket_name,
234240
Key=s3_object_key,

litellm/proxy/proxy_config.yaml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,20 @@ search_tools:
2323
api_key: os.environ/EXA_API_KEY
2424

2525

26-
27-
# for /files endpoints
28-
files_settings:
29-
- custom_llm_provider: openai
30-
api_key: os.environ/OPENAI_API_KEY
31-
32-
3326
litellm_settings:
34-
callbacks: ["datadog"]
27+
# Comprehensive logging settings
28+
store_audit_logs: true
29+
verbose: true
30+
log_level: "DEBUG" # Options: DEBUG, INFO, WARNING, ERROR
31+
success_callback: ["minio"]
32+
s3_callback_params:
33+
s3_endpoint_url: "https://mgtd-ai-m01.dcs.leidos.com:9000" # Replace with your Minio server URL and port
34+
s3_aws_access_key_id: ""
35+
s3_aws_secret_access_key: ""
36+
s3_region_name: "minio" # This can be any value for Minio
37+
s3_bucket_name: "litellm-logs" # Replace with your bucket name
38+
s3_use_ssl: False
39+
s3_verify: False
40+
cache: True
41+
cache_params:
42+
type: local

0 commit comments

Comments
 (0)