-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
show token usage in the playground card view (#1376)
- Show token usage in card view - Add contrast in sidebar and in function name and test name <!-- ELLIPSIS_HIDDEN --> ---- > [!IMPORTANT] > Enhance playground card view by displaying token usage and improving UI contrast, with refactoring for better code maintainability. > > - **UI Enhancements**: > - Display token usage in `ResponseRenderer.tsx` with input/output token counts. > - Improve text contrast in `function-test-name.tsx` and `side-bar/index.tsx`. > - **Code Refactoring**: > - Replace `useAtom` with `useSetAtom` in `preview-toolbar.tsx` for `setShowEnvDialog`. > - Add `className` prop to `Loader` in `components.tsx` for flexible styling. > - **Miscellaneous**: > - Update `root.code-workspace` to use `biomejs.biome` as the default formatter for `typescriptreact`. > - Add `ChevronsLeftRight` icon in `ResponseRenderer.tsx` for token display. > > <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=BoundaryML%2Fbaml&utm_source=github&utm_medium=referral)<sup> for 68f22c1. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN -->
- Loading branch information
Showing
7 changed files
with
39 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
...round-common/src/shared/baml-project-panel/playground-panel/prompt-preview/components.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters