fix: Vertex AI model names use vertex_ai/ prefix

Don't be confused with `llm_provider` which is `vertex_ai-language-models`
340a0453d3/litellm/__init__.py (L509)
This commit is contained in:
Andrew Grigorev 2025-05-14 16:39:17 +03:00
parent 17d40a62c9
commit e54ac087cb
2 changed files with 13 additions and 12 deletions

View file

@ -315,7 +315,7 @@
editor_edit_format: editor-diff editor_edit_format: editor-diff
accepts_settings: ["thinking_tokens"] accepts_settings: ["thinking_tokens"]
- name: vertex_ai-anthropic_models/vertex_ai/claude-3-7-sonnet@20250219 - name: vertex_ai/claude-3-7-sonnet@20250219
overeager: true overeager: true
edit_format: diff edit_format: diff
weak_model_name: vertex_ai/claude-3-5-haiku@20241022 weak_model_name: vertex_ai/claude-3-5-haiku@20241022
@ -323,7 +323,7 @@
examples_as_sys_msg: true examples_as_sys_msg: true
extra_params: extra_params:
max_tokens: 64000 max_tokens: 64000
editor_model_name: vertex_ai-anthropic_models/vertex_ai/claude-3-7-sonnet@20250219 editor_model_name: vertex_ai/claude-3-7-sonnet@20250219
editor_edit_format: editor-diff editor_edit_format: editor-diff
accepts_settings: ["thinking_tokens"] accepts_settings: ["thinking_tokens"]
@ -1610,14 +1610,14 @@
editor_edit_format: editor-diff editor_edit_format: editor-diff
accepts_settings: ["thinking_tokens"] accepts_settings: ["thinking_tokens"]
- name: vertex_ai-anthropic_models/vertex_ai/claude-sonnet-4@20250514 - name: vertex_ai/claude-sonnet-4@20250514
edit_format: diff edit_format: diff
weak_model_name: vertex_ai/claude-3-5-haiku@20241022 weak_model_name: vertex_ai/claude-3-5-haiku@20241022
use_repo_map: true use_repo_map: true
examples_as_sys_msg: false examples_as_sys_msg: false
extra_params: extra_params:
max_tokens: 64000 max_tokens: 64000
editor_model_name: vertex_ai-anthropic_models/vertex_ai/claude-sonnet-4@20250514 editor_model_name: vertex_ai/claude-sonnet-4@20250514
editor_edit_format: editor-diff editor_edit_format: editor-diff
accepts_settings: ["thinking_tokens"] accepts_settings: ["thinking_tokens"]
@ -1814,14 +1814,14 @@
editor_edit_format: editor-diff editor_edit_format: editor-diff
accepts_settings: ["thinking_tokens"] accepts_settings: ["thinking_tokens"]
- name: vertex_ai-anthropic_models/vertex_ai/claude-opus-4@20250514 - name: vertex_ai/claude-opus-4@20250514
edit_format: diff edit_format: diff
weak_model_name: vertex_ai/claude-3-5-haiku@20241022 weak_model_name: vertex_ai/claude-3-5-haiku@20241022
use_repo_map: true use_repo_map: true
examples_as_sys_msg: false examples_as_sys_msg: false
extra_params: extra_params:
max_tokens: 32000 max_tokens: 32000
editor_model_name: vertex_ai-anthropic_models/vertex_ai/claude-sonnet-4@20250514 editor_model_name: vertex_ai/claude-sonnet-4@20250514
editor_edit_format: editor-diff editor_edit_format: editor-diff
accepts_settings: ["thinking_tokens"] accepts_settings: ["thinking_tokens"]
@ -1829,6 +1829,7 @@
edit_format: diff edit_format: diff
use_repo_map: true use_repo_map: true
accepts_settings: ["reasoning_effort", "thinking_tokens"] accepts_settings: ["reasoning_effort", "thinking_tokens"]
- name: openrouter/anthropic/claude-opus-4 - name: openrouter/anthropic/claude-opus-4
edit_format: diff edit_format: diff
weak_model_name: openrouter/anthropic/claude-3-5-haiku weak_model_name: openrouter/anthropic/claude-3-5-haiku

View file

@ -1730,7 +1730,7 @@ cog.out("```\n")
accepts_settings: accepts_settings:
- thinking_tokens - thinking_tokens
- name: vertex_ai-anthropic_models/vertex_ai/claude-3-7-sonnet@20250219 - name: vertex_ai/claude-3-7-sonnet@20250219
edit_format: diff edit_format: diff
weak_model_name: vertex_ai/claude-3-5-haiku@20241022 weak_model_name: vertex_ai/claude-3-5-haiku@20241022
use_repo_map: true use_repo_map: true
@ -1738,29 +1738,29 @@ cog.out("```\n")
examples_as_sys_msg: true examples_as_sys_msg: true
extra_params: extra_params:
max_tokens: 64000 max_tokens: 64000
editor_model_name: vertex_ai-anthropic_models/vertex_ai/claude-3-7-sonnet@20250219 editor_model_name: vertex_ai/claude-3-7-sonnet@20250219
editor_edit_format: editor-diff editor_edit_format: editor-diff
accepts_settings: accepts_settings:
- thinking_tokens - thinking_tokens
- name: vertex_ai-anthropic_models/vertex_ai/claude-opus-4@20250514 - name: vertex_ai/claude-opus-4@20250514
edit_format: diff edit_format: diff
weak_model_name: vertex_ai/claude-3-5-haiku@20241022 weak_model_name: vertex_ai/claude-3-5-haiku@20241022
use_repo_map: true use_repo_map: true
extra_params: extra_params:
max_tokens: 32000 max_tokens: 32000
editor_model_name: vertex_ai-anthropic_models/vertex_ai/claude-sonnet-4@20250514 editor_model_name: vertex_ai/claude-sonnet-4@20250514
editor_edit_format: editor-diff editor_edit_format: editor-diff
accepts_settings: accepts_settings:
- thinking_tokens - thinking_tokens
- name: vertex_ai-anthropic_models/vertex_ai/claude-sonnet-4@20250514 - name: vertex_ai/claude-sonnet-4@20250514
edit_format: diff edit_format: diff
weak_model_name: vertex_ai/claude-3-5-haiku@20241022 weak_model_name: vertex_ai/claude-3-5-haiku@20241022
use_repo_map: true use_repo_map: true
extra_params: extra_params:
max_tokens: 64000 max_tokens: 64000
editor_model_name: vertex_ai-anthropic_models/vertex_ai/claude-sonnet-4@20250514 editor_model_name: vertex_ai/claude-sonnet-4@20250514
editor_edit_format: editor-diff editor_edit_format: editor-diff
accepts_settings: accepts_settings:
- thinking_tokens - thinking_tokens