mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-16 23:41:43 +00:00
fix QA checks
This commit is contained in:
parent
e06d1d623f
commit
3fc262e92a
2 changed files with 6 additions and 6 deletions
|
|
@ -15,7 +15,7 @@ Requires:
|
|||
|
||||
import json
|
||||
import os
|
||||
from typing import Any, Optional, Union
|
||||
from typing import Any, Dict, Optional, Union
|
||||
|
||||
import httpx
|
||||
|
||||
|
|
@ -221,7 +221,7 @@ class AWSSecretsManagerV2(BaseAWSLLM, BaseSecretManager):
|
|||
"""
|
||||
from litellm._uuid import uuid
|
||||
|
||||
data = {
|
||||
data: Dict[str, Any] = {
|
||||
"Name": secret_name,
|
||||
"SecretString": secret_value,
|
||||
"ClientRequestToken": str(uuid.uuid4()),
|
||||
|
|
|
|||
|
|
@ -72,12 +72,12 @@ class CyberArkSecretManager(BaseSecretManager):
|
|||
try:
|
||||
if self.tls_cert_path and self.tls_key_path:
|
||||
# Certificate-based authentication
|
||||
client = httpx.Client(cert=(self.tls_cert_path, self.tls_key_path))
|
||||
resp = client.post(auth_url, content=self.conjur_api_key)
|
||||
http_client = httpx.Client(cert=(self.tls_cert_path, self.tls_key_path))
|
||||
resp = http_client.post(auth_url, content=self.conjur_api_key)
|
||||
else:
|
||||
# API key authentication
|
||||
client = _get_httpx_client()
|
||||
resp = client.post(auth_url, content=self.conjur_api_key)
|
||||
http_handler = _get_httpx_client()
|
||||
resp = http_handler.post(auth_url, content=self.conjur_api_key)
|
||||
|
||||
resp.raise_for_status()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue