ai-sdk-provider
ai-sdk-provider copied to clipboard
Unable to track tool call costs
I'm passing this
extraBody: {
usage: {
include: true,
},
}
But this only returns the usage for the final stop call. Is it possible to get the costs of the tool calls?
I've also tried checking the responses and providerMetadata in the onStepFinish funtion but those were empty as well