mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
fix minio
This commit is contained in:
parent
3e0c2c3320
commit
af31951a2d
2 changed files with 22 additions and 8 deletions
|
|
@ -229,6 +229,12 @@ class MinioLogger(CustomLogger):
|
|||
print_verbose(f"\nMinIO Logger - Logging payload = {payload_str}")
|
||||
|
||||
# Upload to MinIO using simple boto3 put_object
|
||||
verbose_logger.debug(
|
||||
f"minio logger put_object args: Bucket={self.bucket_name}, "
|
||||
f"Key={s3_object_key}, "
|
||||
f"Body=<{len(payload_str)} bytes>, "
|
||||
f"ContentType=application/json"
|
||||
)
|
||||
response = self.s3_client.put_object(
|
||||
Bucket=self.bucket_name,
|
||||
Key=s3_object_key,
|
||||
|
|
|
|||
|
|
@ -23,12 +23,20 @@ search_tools:
|
|||
api_key: os.environ/EXA_API_KEY
|
||||
|
||||
|
||||
|
||||
# for /files endpoints
|
||||
files_settings:
|
||||
- custom_llm_provider: openai
|
||||
api_key: os.environ/OPENAI_API_KEY
|
||||
|
||||
|
||||
litellm_settings:
|
||||
callbacks: ["datadog"]
|
||||
# Comprehensive logging settings
|
||||
store_audit_logs: true
|
||||
verbose: true
|
||||
log_level: "DEBUG" # Options: DEBUG, INFO, WARNING, ERROR
|
||||
success_callback: ["minio"]
|
||||
s3_callback_params:
|
||||
s3_endpoint_url: "https://mgtd-ai-m01.dcs.leidos.com:9000" # Replace with your Minio server URL and port
|
||||
s3_aws_access_key_id: ""
|
||||
s3_aws_secret_access_key: ""
|
||||
s3_region_name: "minio" # This can be any value for Minio
|
||||
s3_bucket_name: "litellm-logs" # Replace with your bucket name
|
||||
s3_use_ssl: False
|
||||
s3_verify: False
|
||||
cache: True
|
||||
cache_params:
|
||||
type: local
|
||||
Loading…
Add table
Reference in a new issue