Closed ramon-prieto closed 1 month ago
Currently, the calculate cost function only accepts the naming convention from the official Anthropic API. Can we extend the cost mapping to allow for cost estimation on workflows using either the Vertex or Bedrock clients?
https://github.com/Mirascope/mirascope/blob/dev/mirascope/core/anthropic/_utils/_calculate_cost.py#L20
A bit swamped this week, but will try to look into this next week.
PR welcome if you have the time and want to contribute!
Would be much appreciated :)
Created this PR to extend the mapping
Description
Currently, the calculate cost function only accepts the naming convention from the official Anthropic API. Can we extend the cost mapping to allow for cost estimation on workflows using either the Vertex or Bedrock clients?
https://github.com/Mirascope/mirascope/blob/dev/mirascope/core/anthropic/_utils/_calculate_cost.py#L20