mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-04 03:35:00 +00:00
fix: Add caching by default for deepseek coder.
This commit is contained in:
parent
ec6e23a852
commit
4705136951
2 changed files with 3 additions and 1 deletions
|
@ -173,7 +173,7 @@ class Coder:
|
||||||
prefix = "Model"
|
prefix = "Model"
|
||||||
|
|
||||||
output = f"{prefix}: {main_model.name} with {self.edit_format} edit format"
|
output = f"{prefix}: {main_model.name} with {self.edit_format} edit format"
|
||||||
if self.add_cache_headers:
|
if self.add_cache_headers or main_model.caches_by_default:
|
||||||
output += ", prompt cache"
|
output += ", prompt cache"
|
||||||
if main_model.info.get("supports_assistant_prefill"):
|
if main_model.info.get("supports_assistant_prefill"):
|
||||||
output += ", infinite output"
|
output += ", infinite output"
|
||||||
|
|
|
@ -75,6 +75,7 @@ class ModelSettings:
|
||||||
extra_headers: Optional[dict] = None
|
extra_headers: Optional[dict] = None
|
||||||
max_tokens: Optional[int] = None
|
max_tokens: Optional[int] = None
|
||||||
cache_control: bool = False
|
cache_control: bool = False
|
||||||
|
caches_by_default: bool = False
|
||||||
|
|
||||||
|
|
||||||
# https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo
|
# https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo
|
||||||
|
@ -400,6 +401,7 @@ MODEL_SETTINGS = [
|
||||||
send_undo_reply=True,
|
send_undo_reply=True,
|
||||||
examples_as_sys_msg=True,
|
examples_as_sys_msg=True,
|
||||||
reminder="sys",
|
reminder="sys",
|
||||||
|
caches_by_default=True,
|
||||||
),
|
),
|
||||||
ModelSettings(
|
ModelSettings(
|
||||||
"openrouter/deepseek/deepseek-coder",
|
"openrouter/deepseek/deepseek-coder",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue