Skip to content

Commit

Permalink
Update openhands/llm/llm.py
Browse files Browse the repository at this point in the history
  • Loading branch information
enyst authored Dec 15, 2024
1 parent 5f3b761 commit a286da4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions openhands/llm/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,8 +554,6 @@ def _completion_cost(self, response) -> float:
if (
self.config.input_cost_per_token is not None
and self.config.output_cost_per_token is not None
and self.config.cache_hit_discount is not None
and self.config.cache_write_premium is not None
):
# Use custom pricing with configured cache discounts/premiums
input_cost = input_tokens * self.config.input_cost_per_token
Expand Down

0 comments on commit a286da4

Please sign in to comment.