bedrock
autogen.oai.bedrock.calculate_cost
calculate_cost
Calculate the cost of the completion using the Bedrock pricing.
Parameters:Name | Description |
---|---|
input_tokens | Type: int |
output_tokens | Type: int |
model_id | Type: str |
Calculate the cost of the completion using the Bedrock pricing.
Parameters:Name | Description |
---|---|
input_tokens | Type: int |
output_tokens | Type: int |
model_id | Type: str |