microsoft / microsoft/foundry-dev-tools

Agent Builder vs Playground : Token count behavior diff

Open
#276 2 comments 0 reactions 1 assignee View on GitHub

@xiaolang124 is already working on this.

Since Oct 9, 2025.

feature request
Dominant language
JavaScript
Stars
2.1k
Forks
260
Avg merge
42m
Merged PRs (30d)
29

Description

Hi There,

An Azure OpenAI model has been registered as Custom.

It works in both Agent Builder and Playground.

In Agent Builder it says Token used: nnn, where nnn is the actual token count from the usage SSE event. E.g

“usage”: {  “completion_token”: 123 }

In Playground, however, it says: “This model doesn’t return token count.”

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.