mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-05 15:20:30 +08:00
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:
@@ -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"):
|
||||
|
||||
Reference in New Issue
Block a user