diff --git a/router/payment/models.py b/router/payment/models.py index c036592e..7b56b9ff 100644 --- a/router/payment/models.py +++ b/router/payment/models.py @@ -91,7 +91,9 @@ async def update_sats_pricing() -> None: ) mspp = model.sats_pricing.prompt mspc = model.sats_pricing.completion - if (tp:= model.top_provider) and tp.context_length or tp.max_completion_tokens: + if (tp := model.top_provider) and ( + tp.context_length or tp.max_completion_tokens + ): if (cl := model.top_provider.context_length) and ( mct := model.top_provider.max_completion_tokens ):