Skip to content

Commit 1f80ed1

Browse files
committed
Fix black
1 parent ba80191 commit 1f80ed1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

backend/onyx/llm/utils.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -506,13 +506,16 @@ def get_llm_contextual_cost(
506506
)
507507
except Exception:
508508
logger.exception(
509-
f"An unexpected error occurred while calculating cost for model {llm.config.model_name} (potentially due to malformed name). Assuming cost is 0."
509+
"An unexpected error occurred while calculating cost for model "
510+
f"{llm.config.model_name} (potentially due to malformed name). "
511+
"Assuming cost is 0."
510512
)
511513
return 0
512514

513515
# Costs are in USD dollars per million tokens
514516
return usd_per_prompt + usd_per_completion
515517

518+
516519
def get_llm_max_tokens(
517520
model_map: dict,
518521
model_name: str,

0 commit comments

Comments
 (0)