fix: PydanticDeprecatedSince20: Support for class-based config is deprecated, use ConfigDict instead. Deprecated in Pydantic V2.0 to be removed in V3.0.

This commit is contained in:
Elijas Dapšauskas 2025-03-19 18:19:03 +02:00 committed by GitHub
parent edc38280ea
commit 84e78ed9c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -690,8 +690,7 @@ class FineTuningJobCreate(BaseModel):
class LiteLLMFineTuningJobCreate(FineTuningJobCreate): class LiteLLMFineTuningJobCreate(FineTuningJobCreate):
custom_llm_provider: Literal["openai", "azure", "vertex_ai"] custom_llm_provider: Literal["openai", "azure", "vertex_ai"]
class Config: model_config = {"extra": "allow"} # This allows the model to accept additional fields
extra = "allow" # This allows the model to accept additional fields
AllEmbeddingInputValues = Union[str, List[str], List[int], List[List[int]]] AllEmbeddingInputValues = Union[str, List[str], List[int], List[List[int]]]