Closed ayushmorbar closed 4 months ago
For together ai we don't need -completions
since it calculates pricing for generated tokens only and not input tokens
For together ai we don't need
-completions
since it calculates pricing for generated tokens only and not input tokens
Understood.
This pull request adds a new method to calculate the cost of TogetherAI queries based on the number of tokens generated. The method takes into account whether the query is a completion or not, and uses the appropriate cost per 1M tokens. This will provide more accurate cost estimation for TogetherAI queries.
refer #185