Feature: Add the new anthropic and voyage models (#15516)

add the newanthropic and voyage models. Strip opus 4.7 and 4.8 of
certain usnspported keys

Co-authored-by: Idriss Sbaaoui <112825897+6ba3i@users.noreply.github.com>
This commit is contained in:
Wang Qi
2026-06-02 17:29:18 +08:00
committed by GitHub
parent c990badda1
commit d41373cfa9
4 changed files with 129 additions and 0 deletions

View File

@@ -127,6 +127,10 @@ def _apply_model_family_policies(
for key in ("temperature", "top_p", "logprobs", "top_logprobs"):
sanitized_gen_conf.pop(key, None)
sanitized_kwargs.pop(key, None)
elif provider == SupportedLiteLLMProvider.Anthropic and model_name_lower in {"claude-opus-4-7", "claude-opus-4-8"}:
for key in ("temperature", "top_p", "top_k"):
sanitized_gen_conf.pop(key, None)
sanitized_kwargs.pop(key, None)
if provider == SupportedLiteLLMProvider.HunYuan:
for key in ("presence_penalty", "frequency_penalty"):