mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 08:14:59 +00:00
restore openrouter attribution with extra_headers
This commit is contained in:
parent
e48fecee14
commit
0e14014118
1 changed files with 10 additions and 2 deletions
|
@ -273,7 +273,11 @@ MODEL_SETTINGS = [
|
|||
examples_as_sys_msg=True,
|
||||
can_prefill=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",
|
||||
"HTTP-Referer": "https://aider.chat",
|
||||
"X-Title": "Aider",
|
||||
},
|
||||
),
|
||||
ModelSettings(
|
||||
"openrouter/anthropic/claude-3.5-sonnet",
|
||||
|
@ -284,7 +288,11 @@ MODEL_SETTINGS = [
|
|||
can_prefill=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",
|
||||
"HTTP-Referer": "https://aider.chat",
|
||||
"X-Title": "Aider",
|
||||
},
|
||||
),
|
||||
# Vertex AI Claude models
|
||||
# Does not yet support 8k token
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue