Skip to content

Commit

Permalink
update models in cost counter
Browse files Browse the repository at this point in the history
  • Loading branch information
richardblythman committed Mar 21, 2024
1 parent 51cb11a commit 4acddf0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/valory/skills/task_execution/utils/benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ class TokenCounterCallback:
"""Callback to count the number of tokens used in a generation."""

TOKEN_PRICES = {
"gpt-3.5-turbo": {"input": 0.001, "output": 0.002},
"gpt-3.5-turbo": {"input": 0.0005, "output": 0.0015},
"gpt-3.5-turbo-0125": {"input": 0.0005, "output": 0.0015},
"gpt-4": {"input": 0.03, "output": 0.06},
"gpt-4-turbo": {"input": 0.01, "output": 0.03},
"gpt-4-turbo-preview": {"input": 0.01, "output": 0.03},
"gpt-4-0125-preview": {"input": 0.01, "output": 0.03},
"claude-2": {"input": 0.008, "output": 0.024},
}

Expand Down

0 comments on commit 4acddf0

Please sign in to comment.