Skip to content

Commit

Permalink
[FEATURE] Added function to get model name of LLM (#95)
Browse files Browse the repository at this point in the history
* Added function to get model name of LLM

* Version bump

* Version bump
  • Loading branch information
Deepak-Kesavan authored Aug 30, 2024
1 parent 7613bec commit 0a6ebd2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/unstract/sdk/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.46.0"
__version__ = "0.47.0"


def get_sdk_version():
Expand Down
11 changes: 11 additions & 0 deletions src/unstract/sdk/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,17 @@ def get_class_name(self) -> str:
"""
return self._llm_instance.class_name()

def get_model_name(self) -> str:
"""Gets the name of the LLM model
Args:
NA
Returns:
LLM model name
"""
return self._llm_instance.model

@deprecated("Use LLM instead of ToolLLM")
def get_llm(self, adapter_instance_id: Optional[str] = None) -> LlamaIndexLLM:
if not self._llm_instance:
Expand Down

0 comments on commit 0a6ebd2

Please sign in to comment.