Skip to content

Commit

Permalink
Adds error log
Browse files Browse the repository at this point in the history
  • Loading branch information
oulianov committed May 21, 2024
1 parent 9aca49d commit 25d3b34
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/app/services/mongo/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,5 @@ async def metered_prediction(
(input_tokens + 3 * completion_tokens) * 250, # 2.5$ / 1M tokens
meter_event_name="phospho_token_based_meter",
)
else:
logger.error(f"Model {model_id} not supported for metered billing")

0 comments on commit 25d3b34

Please sign in to comment.