Skip to content

Commit 4ebd686

Browse files
committed
fix: class config deprecation warning
1 parent fc45711 commit 4ebd686

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/uipath_langchain/_utils/_request_mixin.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import openai
1010
from langchain_core.embeddings import Embeddings
1111
from langchain_core.language_models.chat_models import _cleanup_llm_representation
12-
from pydantic import BaseModel, Field, SecretStr
12+
from pydantic import BaseModel, ConfigDict, Field, SecretStr
1313
from tenacity import (
1414
AsyncRetrying,
1515
Retrying,
@@ -37,8 +37,7 @@ def get_from_uipath_url():
3737

3838

3939
class UiPathRequestMixin(BaseModel):
40-
class Config:
41-
arbitrary_types_allowed = True
40+
model_config = ConfigDict(arbitrary_types_allowed=True)
4241

4342
default_headers: Optional[Mapping[str, str]] = {
4443
"X-UiPath-Streaming-Enabled": "false",

0 commit comments

Comments
 (0)