mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
style: fix ruff format for tickerr integration
This commit is contained in:
parent
22255128f1
commit
d6f9d6c910
1 changed files with 1 additions and 3 deletions
|
|
@ -49,9 +49,7 @@ class TickerrLogger(CustomLogger):
|
|||
}
|
||||
self.region: Optional[str] = os.environ.get("TICKERR_REGION")
|
||||
try:
|
||||
self.sample_rate: float = min(
|
||||
1.0, max(0.0, float(os.environ.get("TICKERR_SAMPLE_RATE", "0")))
|
||||
)
|
||||
self.sample_rate: float = min(1.0, max(0.0, float(os.environ.get("TICKERR_SAMPLE_RATE", "0"))))
|
||||
except (ValueError, TypeError):
|
||||
self.sample_rate = 0.0
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue