From 84e78ed9c622ac9d08bbdc965a89ba3eeb09286e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elijas=20Dap=C5=A1auskas?= <4084885+Elijas@users.noreply.github.com> Date: Wed, 19 Mar 2025 18:19:03 +0200 Subject: [PATCH] fix: PydanticDeprecatedSince20: Support for class-based `config` is deprecated, use ConfigDict instead. Deprecated in Pydantic V2.0 to be removed in V3.0. --- litellm/types/llms/openai.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/litellm/types/llms/openai.py b/litellm/types/llms/openai.py index df746036da..24f54bdfec 100644 --- a/litellm/types/llms/openai.py +++ b/litellm/types/llms/openai.py @@ -690,8 +690,7 @@ class FineTuningJobCreate(BaseModel): class LiteLLMFineTuningJobCreate(FineTuningJobCreate): custom_llm_provider: Literal["openai", "azure", "vertex_ai"] - class Config: - extra = "allow" # This allows the model to accept additional fields + model_config = {"extra": "allow"} # This allows the model to accept additional fields AllEmbeddingInputValues = Union[str, List[str], List[int], List[List[int]]]