mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
feat: Add spinner when generating commit message
This commit is contained in:
parent
3daf7d4df3
commit
49b3f85cc5
1 changed files with 10 additions and 8 deletions
|
@ -20,6 +20,7 @@ import pathspec
|
||||||
|
|
||||||
from aider import prompts, utils
|
from aider import prompts, utils
|
||||||
|
|
||||||
|
from .waiting import WaitingSpinner
|
||||||
from .dump import dump # noqa: F401
|
from .dump import dump # noqa: F401
|
||||||
|
|
||||||
ANY_GIT_ERROR += [
|
ANY_GIT_ERROR += [
|
||||||
|
@ -342,6 +343,7 @@ class GitRepo:
|
||||||
]
|
]
|
||||||
|
|
||||||
commit_message = None
|
commit_message = None
|
||||||
|
with WaitingSpinner("Generating commit message"):
|
||||||
for model in self.models:
|
for model in self.models:
|
||||||
num_tokens = model.token_count(messages)
|
num_tokens = model.token_count(messages)
|
||||||
max_tokens = model.info.get("max_input_tokens") or 0
|
max_tokens = model.info.get("max_input_tokens") or 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue