Aider-AI / aider

aider is AI pair programming in your terminal
https://aider.chat/
Apache License 2.0
22.75k stars 2.12k forks source link

Deepseek erroneous token limit error #2512

Open tom-doerr opened 1 day ago

tom-doerr commented 1 day ago

Issue

Either the error was triggered when it shouldn't have or the numbers aren't correct. image

Version and model info

Aider v0.66.0 Model: deepseek/deepseek-coder with diff edit format, prompt cache, infinite output Git repo: .git with 1 files Repo-map: using 1024 tokens, files refresh Command Line Args: --deepseek --vim --analytics --analytics-log analytics.log

Environment Variables: OPENAI_API_KEY: ...U_UA ANTHROPIC_API_KEY: ...egAA Config File (/home/tom/.aider.conf.yml): model: sonnet editor: vim cache-prompts: True cache-keepalive-pings:1 max-chat-history-tokens:10000

Defaults: --model-settings-file:.aider.model.settings.yml --model-metadata-file:.aider.model.metadata.json --env-file: /home/tom/git/dspy_context_info/.env --map-refresh: auto --map-multiplier-no-files:2 --input-history-file:/home/tom/git/dspy_context_info/.aider.i nput.history --chat-history-file:/home/tom/git/dspy_context_info/.aider.ch at.history.md --user-input-color:#00cc00 --tool-error-color:#FF2222 --tool-warning-color:#FFA500 --assistant-output-color:#0088ff --code-theme: default --aiderignore:
/home/tom/git/dspy_context_info/.aiderignore --lint-cmd: [] --test-cmd: [] --encoding: utf-8 --voice-format: wav --voice-language: en

Option settings:

tom-doerr commented 1 day ago

This doesn't seem right image image

image

paul-gauthier commented 1 day ago

Thanks for trying aider and filing this issue. This doc may be helpful:

https://aider.chat/docs/troubleshooting/token-limits.html