Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: check token usage in dry_run mode #82

Merged
merged 1 commit into from
Mar 20, 2023
Merged

Conversation

sigoden
Copy link
Owner

@sigoden sigoden commented Mar 20, 2023

In command mode:

aichat --dry-run -r coder async sleep function in js
>>> The following message consumes 59 tokens.
I want you to act as a senior programmer.  I want you to answer only with the fenced code block. I want you to add an language identifier to the fenced code block. Do not write explanations.

async sleep function in js

In chat mode:

coder〉.set dry_run true

coder〉async sleep function in js
>>> The following message consumes 59 tokens.
I want you to act as a senior programmer.  I want you to answer only with the fenced code block. I want you to add an language identifier to the fenced code block. Do not write explanations.

async sleep function in js

@sigoden sigoden mentioned this pull request Mar 20, 2023
@sigoden sigoden merged commit 19ce62a into main Mar 20, 2023
@sigoden sigoden deleted the feat-check-token-usage branch March 20, 2023 14:51
rooct pushed a commit to rooct/aichat that referenced this pull request Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant