Skip to content

Commit 91eb184

Browse files
committed
refactor(llms): remove unused abstract methods from LLMBase
1 parent 610912f commit 91eb184

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

pkgs/base/swarmauri_base/llms/LLMBase.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ class LLMBase(IPredict, ComponentBase):
1414
model_config = ConfigDict(extra="forbid", arbitrary_types_allowed=True)
1515
type: Literal["LLMBase"] = "LLMBase"
1616

17-
# Common attributes found in both GroqModel and OpenAIModel
1817
api_key: Optional[SecretStr] = None
1918
name: str = ""
2019
timeout: float = 600.0
@@ -57,18 +56,6 @@ def remove_allowed_model(self, model: str) -> None:
5756
raise ValueError(f"Model '{model}' is not in the allowed models list.")
5857
self.allowed_models.remove(model)
5958

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-
7259
@abstractmethod
7360
def predict(self, *args, **kwargs):
7461
raise NotImplementedError("predict() not implemented in subclass yet.")

0 commit comments

Comments
 (0)