This release is a pre-release and may not be stable for production use.
Swarmauri LLM LeptonAI
This package provides integration with Lepton AI's text and image generation models.
Installation
pip install swarmauri_llm_leptonai
Usage
Basic usage examples with code snippets
Text Generation
from swarmauri.llms.LeptonAIModel import LeptonAIModel
# Initialize the model
model = LeptonAIModel(api_key="your_api_key")
# Generate text
conversation = Conversation()
conversation.add_message(HumanMessage(content="Hello, how are you?"))
response = model.predict(conversation=conversation)
print(response.get_last().content)
Image Generation
from swarmauri.image_gens.LeptonAIImgGenModel import LeptonAIImgGenModel
# Initialize the model
img_model = LeptonAIImgGenModel(api_key="your_api_key")
# Generate an image
prompt = "A cute cat playing with a ball of yarn"
image_bytes = img_model.generate_image(prompt=prompt)
# Save the image
with open("generated_image.png", "wb") as img_file:
img_file.write(image_bytes)
Want to help?
If you want to contribute to swarmauri-sdk, read up on our guidelines for contributing that will help you get started.
Metadata
Release files for swarmauri_llm_leptonai 0.7.0.dev11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| swarmauri_llm_leptonai-0.7.0.dev11.tar.gz | 8.8 kB | Without provenance | Details for swarmauri_llm_leptonai-0.7.0.dev11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| swarmauri_llm_leptonai-0.7.0.dev11-py3-none-any.whl | Python 3 | none | any | Details for swarmauri_llm_leptonai-0.7.0.dev11-py3-none-any.whl |
Total release size: 18.8 kB
Release files / swarmauri_llm_leptonai-0.7.0.dev11.tar.gz
| Download URL | swarmauri_llm_leptonai-0.7.0.dev11.tar.gz |
|---|---|
| Size | 8.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
156925085cdf15dc277f120ddc8a2b4c4351084232e1438ab19fb49d40358a15
|
|
BLAKE2b-256 checksum How to use checksums |
a1643a447e7829a36219a310adef955d172b43c43bfd6443e8b4217e5f343f5c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.4
|
Release files / swarmauri_llm_leptonai-0.7.0.dev11-py3-none-any.whl
| Download URL | swarmauri_llm_leptonai-0.7.0.dev11-py3-none-any.whl |
|---|---|
| Size | 10.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
14af09694de687b8473fd2a519f1e6cbecde2053d84d7053327a9ff28564d2ec
|
|
BLAKE2b-256 checksum How to use checksums |
7d7ae24f8dac027edffb2951a7618c25096533e6ffbc4d56ecbe675325a39bcf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.4
|
Security for swarmauri_llm_leptonai 0.7.0.dev11
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.