mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
refactor: Increase max chat history tokens limit from 4k to 8k
This commit is contained in:
parent
d6b612a4a3
commit
463fdb1ed9
1 changed files with 2 additions and 2 deletions
|
@ -921,8 +921,8 @@ class Model(ModelSettings):
|
|||
|
||||
max_input_tokens = self.info.get("max_input_tokens") or 0
|
||||
# Calculate max_chat_history_tokens as 1/16th of max_input_tokens,
|
||||
# with minimum 1k and maximum 4k
|
||||
self.max_chat_history_tokens = min(max(max_input_tokens // 16, 1024), 4096)
|
||||
# with minimum 1k and maximum 8k
|
||||
self.max_chat_history_tokens = min(max(max_input_tokens / 16, 1024), 8192)
|
||||
|
||||
self.configure_model_settings(model)
|
||||
if weak_model is False:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue