Skip to content

Commit

Permalink
Merge pull request #25 from outl1ne/model-pricing-update-turbo-gpt-4
Browse files Browse the repository at this point in the history
feat: Update modelMap in ModelPricing.php
  • Loading branch information
allantatter authored Mar 27, 2024
2 parents a095fce + 31135ac commit 10f3cb9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Pricing/ModelPricing.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class ModelPricing extends Calculator
{
protected array $modelMap = [
'gpt-3.5-turbo' => 'gpt-3.5-turbo-0125',
'gpt-4-turbo-preview' => 'gpt-4-0125-preview',
];

public function calculate(int $inputTokens, int $outputTokens = null): ?float
Expand Down

0 comments on commit 10f3cb9

Please sign in to comment.