Skip to content

Commit

Permalink
Update oci_data_science_model_deployment_endpoint.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lu-ohai authored Jan 14, 2025
1 parent 2e21b97 commit 506eff8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import Any, Dict, List, Optional, Mapping, Callable
from langchain_core.embeddings import Embeddings
from langchain_core.pydantic_v1 import BaseModel, root_validator, Field
from langchain_core.utils import get_from_dict_or_env
from langchain_core.pydantic_v1 import BaseModel, Field
from langchain_core.utils import get_from_dict_or_env, pre_init
from langchain_core.language_models.llms import create_base_retry_decorator
import requests

Expand Down Expand Up @@ -59,7 +59,7 @@ class OCIModelDeploymentEndpointEmbeddings(BaseModel, Embeddings):
max_retries: int = 1
"""The maximum number of retries to make when generating."""

@root_validator()
@pre_init
def validate_environment( # pylint: disable=no-self-argument
cls, values: Dict
) -> Dict:
Expand Down

0 comments on commit 506eff8

Please sign in to comment.