jackMort / jackMort/ChatGPT.nvim

Show tokens used

Open
#433 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Lua
Stars
4k
Forks
317
PR merge metrics
No merged PRs in 30d

Description

There is a popular [video](https://www.youtube.com/watch?v=7k0KZsheLP4) by Dreams of Code that showcases a feature to display the tokens used to make a request.

At 4:37 in the video it shows the tokens used after getting a response back from `:ChatGPT`, i have looked through the default configuration, and searched for previous issues in this repository but cannot find any solution to get them to display.

Is this feature to show tokens still possible?

![image](https://github.com/jackMort/ChatGPT.nvim/assets/36120361/31d1865b-fd3b-4814-93a1-d94c7fe70342)
Caption: Screenshot showing the tokens used

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the :ChatGPT entry point and review the default configuration to determine where responses are handled and whether token usage is exposed. Verify the API response data and identify where a token count could be displayed after a response; done means the usage is shown reliably when available.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, neovim
Domain
devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.