This commit is contained in:
Shroominic
2025-08-06 19:23:50 -03:00
parent 17414065d1
commit e4ee03f7a0
+3 -1
View File
@@ -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
):