File tree 1 file changed +0
-13
lines changed
pkgs/base/swarmauri_base/llms 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ class LLMBase(IPredict, ComponentBase):
14
14
model_config = ConfigDict (extra = "forbid" , arbitrary_types_allowed = True )
15
15
type : Literal ["LLMBase" ] = "LLMBase"
16
16
17
- # Common attributes found in both GroqModel and OpenAIModel
18
17
api_key : Optional [SecretStr ] = None
19
18
name : str = ""
20
19
timeout : float = 600.0
@@ -57,18 +56,6 @@ def remove_allowed_model(self, model: str) -> None:
57
56
raise ValueError (f"Model '{ model } ' is not in the allowed models list." )
58
57
self .allowed_models .remove (model )
59
58
60
- @abstractmethod
61
- def _format_messages (self , * args , ** kwargs ):
62
- """Format conversation messages for API request."""
63
- raise NotImplementedError ("_format_messages() not implemented in subclass yet." )
64
-
65
- @abstractmethod
66
- def get_allowed_models (self ) -> List [str ]:
67
- """Get the list of allowed models for this LLM provider."""
68
- raise NotImplementedError (
69
- "get_allowed_models() not implemented in subclass yet."
70
- )
71
-
72
59
@abstractmethod
73
60
def predict (self , * args , ** kwargs ):
74
61
raise NotImplementedError ("predict() not implemented in subclass yet." )
You can’t perform that action at this time.
0 commit comments