File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
ads/llm/langchain/plugins/llms Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -357,6 +357,11 @@ def _refresh_signer(self) -> bool:
357
357
self .auth ["signer" ].refresh_security_token ()
358
358
return True
359
359
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
360
365
361
366
362
367
class OCIModelDeploymentLLM (BaseLLM , BaseOCIModelDeployment ):
@@ -449,11 +454,6 @@ def _llm_type(self) -> str:
449
454
"""Return type of llm."""
450
455
return "oci_model_deployment_endpoint"
451
456
452
- @classmethod
453
- def is_lc_serializable (cls ) -> bool :
454
- """Return whether this model can be serialized by Langchain."""
455
- return True
456
-
457
457
@property
458
458
def _default_params (self ) -> Dict [str , Any ]:
459
459
"""Get the default parameters."""
You can’t perform that action at this time.
0 commit comments