Name | llm-sdk JSON |
Version |
0.3.3
JSON |
| download |
home_page | None |
Summary | SDK to get all the available LLM models per Provider |
upload_time | 2025-02-07 12:06:21 |
maintainer | None |
docs_url | None |
author | Olsi Hoxha |
requires_python | >=3.6 |
license | None |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# LLM SDK (AI MODELS)
### What is LLM SDK ?
LLM SDK is an API wrapper designed to access and manage all available LLM models, including LLM, Multimodal, and Embedding models. It employs agents to automate the process of collecting information about available models, ensuring a comprehensive list of models is available. Despite the automation, human verification is required to ensure accuracy.
### Installation
`pip install llm-sdk`
### Usage
The LLM SDK provides a simple interface to interact with the API and retrieve information about models, providers, and model creators. Below is an example of how to use the SDK.
```python
from llm_sdk import ai_models
# Get a list of available models
available_models = ai_models.get_available_models(model_type_name="LLM", provider_name="OpenAI", is_verified=True)
for model in available_models:
print(model.name)
```
```python
# Get a list of providers
providers = ai_models.get_providers(model_type_name="LLM")
for provider in providers:
print(provider.name)
```
```python
# Get a list of model creators
model_creators = ai_models.get_model_creators(model_type_name="LLM")
for creator in model_creators:
print(creator.name)
```
```python
# Get details of a specific model creator by ID
model_creator = ai_models.get_model_creator(creator_id=1)
print(model_creator.name)
```
### API Methods
* `get_available_models`: Retrieve a list of available models based on optional filters.
##### Filters:
* `model_type_name` (Optional[str]): Filter by model type name.
* `provider_name` (Optional[str]): Filter by provider name.
* `is_verified` (Optional[bool]): Filter by verification status.
* `get_providers`: Retrieve a list of providers based on an optional model type filter.
##### Filters:
* `model_type_name` (Optional[str]): Filter by model type name.
* `get_model_creators`: Retrieve a list of model creators based on an optional model type filter.
##### Filters:
* `model_type_name` (Optional[str]): Filter by model type name.
* `get_model_creator`: Retrieve details of a specific model creator by their ID.
##### Parameters:
* `creator_id` (int): The ID of the model creator.
Raw data
{
"_id": null,
"home_page": null,
"name": "llm-sdk",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": null,
"author": "Olsi Hoxha",
"author_email": "olsihoxha824@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/9b/ab/dbac04c6aa26cf6014d8cd742df7a38ffd0766be78301bde7faa936e5ed8/llm_sdk-0.3.3.tar.gz",
"platform": null,
"description": "# LLM SDK (AI MODELS)\n\n### What is LLM SDK ?\nLLM SDK is an API wrapper designed to access and manage all available LLM models, including LLM, Multimodal, and Embedding models. It employs agents to automate the process of collecting information about available models, ensuring a comprehensive list of models is available. Despite the automation, human verification is required to ensure accuracy.\n\n### Installation\n`pip install llm-sdk`\n\n### Usage\nThe LLM SDK provides a simple interface to interact with the API and retrieve information about models, providers, and model creators. Below is an example of how to use the SDK.\n\n```python\nfrom llm_sdk import ai_models\n\n# Get a list of available models\navailable_models = ai_models.get_available_models(model_type_name=\"LLM\", provider_name=\"OpenAI\", is_verified=True)\nfor model in available_models:\n print(model.name)\n```\n\n```python\n# Get a list of providers\nproviders = ai_models.get_providers(model_type_name=\"LLM\")\nfor provider in providers:\n print(provider.name)\n```\n```python\n# Get a list of model creators\nmodel_creators = ai_models.get_model_creators(model_type_name=\"LLM\")\nfor creator in model_creators:\n print(creator.name)\n```\n```python\n# Get details of a specific model creator by ID\nmodel_creator = ai_models.get_model_creator(creator_id=1)\nprint(model_creator.name)\n```\n\n\n### API Methods\n\n\n* `get_available_models`: Retrieve a list of available models based on optional filters.\n\n ##### Filters:\n * `model_type_name` (Optional[str]): Filter by model type name.\n * `provider_name` (Optional[str]): Filter by provider name.\n * `is_verified` (Optional[bool]): Filter by verification status.\n\n\n* `get_providers`: Retrieve a list of providers based on an optional model type filter.\n \n ##### Filters:\n * `model_type_name` (Optional[str]): Filter by model type name.\n\n\n* `get_model_creators`: Retrieve a list of model creators based on an optional model type filter.\n\n ##### Filters:\n * `model_type_name` (Optional[str]): Filter by model type name.\n \n\n* `get_model_creator`: Retrieve details of a specific model creator by their ID.\n\n ##### Parameters:\n * `creator_id` (int): The ID of the model creator.\n",
"bugtrack_url": null,
"license": null,
"summary": "SDK to get all the available LLM models per Provider",
"version": "0.3.3",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c54a9139a9ef8ae9ab666eab67a96c0881123a952d07ed98068d4ba43136e2be",
"md5": "62951b76045cd14651ee036ce4969af2",
"sha256": "2a6026938018d8726f3184fdfd249f49c0f4091c3cabc122a8b7ae2a68a103ae"
},
"downloads": -1,
"filename": "llm_sdk-0.3.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "62951b76045cd14651ee036ce4969af2",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 3376,
"upload_time": "2025-02-07T12:06:19",
"upload_time_iso_8601": "2025-02-07T12:06:19.428463Z",
"url": "https://files.pythonhosted.org/packages/c5/4a/9139a9ef8ae9ab666eab67a96c0881123a952d07ed98068d4ba43136e2be/llm_sdk-0.3.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "9babdbac04c6aa26cf6014d8cd742df7a38ffd0766be78301bde7faa936e5ed8",
"md5": "be5f8397b0f76732b632ab8babaa72f6",
"sha256": "f9740fce025161522dcabd7c99c1b12815a17be4e037e3da15b83aa00123abe5"
},
"downloads": -1,
"filename": "llm_sdk-0.3.3.tar.gz",
"has_sig": false,
"md5_digest": "be5f8397b0f76732b632ab8babaa72f6",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 3022,
"upload_time": "2025-02-07T12:06:21",
"upload_time_iso_8601": "2025-02-07T12:06:21.204429Z",
"url": "https://files.pythonhosted.org/packages/9b/ab/dbac04c6aa26cf6014d8cd742df7a38ffd0766be78301bde7faa936e5ed8/llm_sdk-0.3.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-02-07 12:06:21",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "llm-sdk"
}