mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
feat: Add prompt caching header to model settings
This commit is contained in:
parent
531ede2073
commit
94c4b59f9e
1 changed files with 4 additions and 4 deletions
|
@ -270,7 +270,9 @@ MODEL_SETTINGS = [
|
|||
examples_as_sys_msg=True,
|
||||
accepts_images=True,
|
||||
max_tokens=8192,
|
||||
extra_headers={"anthropic-beta": "max-tokens-3-5-sonnet-2024-07-15"},
|
||||
extra_headers={
|
||||
"anthropic-beta": "max-tokens-3-5-sonnet-2024-07-15, prompt-caching-2024-07-31",
|
||||
},
|
||||
),
|
||||
ModelSettings(
|
||||
"anthropic/claude-3-5-sonnet-20240620",
|
||||
|
@ -280,9 +282,7 @@ MODEL_SETTINGS = [
|
|||
examples_as_sys_msg=True,
|
||||
max_tokens=8192,
|
||||
extra_headers={
|
||||
"anthropic-beta": "max-tokens-3-5-sonnet-2024-07-15",
|
||||
"HTTP-Referer": AIDER_SITE_URL,
|
||||
"X-Title": AIDER_APP_NAME,
|
||||
"anthropic-beta": "max-tokens-3-5-sonnet-2024-07-15, prompt-caching-2024-07-31",
|
||||
},
|
||||
),
|
||||
ModelSettings(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue