Skip to content

Commit ca59d5b

Browse files
committed
Set is_lc_serializable to True by default.
1 parent 04cb9bc commit ca59d5b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ads/llm/langchain/plugins/llms/oci_data_science_model_deployment_endpoint.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,11 @@ def _refresh_signer(self) -> bool:
357357
self.auth["signer"].refresh_security_token()
358358
return True
359359
return False
360+
361+
@classmethod
362+
def is_lc_serializable(cls) -> bool:
363+
"""Return whether this model can be serialized by LangChain."""
364+
return True
360365

361366

362367
class OCIModelDeploymentLLM(BaseLLM, BaseOCIModelDeployment):
@@ -449,11 +454,6 @@ def _llm_type(self) -> str:
449454
"""Return type of llm."""
450455
return "oci_model_deployment_endpoint"
451456

452-
@classmethod
453-
def is_lc_serializable(cls) -> bool:
454-
"""Return whether this model can be serialized by Langchain."""
455-
return True
456-
457457
@property
458458
def _default_params(self) -> Dict[str, Any]:
459459
"""Get the default parameters."""

0 commit comments

Comments
 (0)