ai-sdk-provider icon indicating copy to clipboard operation
ai-sdk-provider copied to clipboard

Unable to track tool call costs

Open opti21 opened this issue 7 months ago • 0 comments

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

Image Image

opti21 avatar Sep 17 '25 01:09 opti21