Python client for LightOn Paradigm
Project description
paradigm-client
Python client for LightOn Paradigm Large language Model.
Installation
You can install this package from PyPi with:
pip install paradigm-client
Or from source:
pip install -U git+https://github.com/lightonai/paradigm-client.git
Once the package is installed, make sure to define environment variables PARADIGM_API_KEY and HOST to your API key, e.g. by adding the following lines to your .bashrc
export PARADIGM_API_KEY="<your api key>"
Quick Start
Using paradigm-client is pretty simple, here are a code example to show you how you can use it.
from paradigm_client.remote_model import RemoteModel
import os
host = "https://llm.lighton.ai"
model = RemoteModel(host, model_name="llm-mini")
print(model.create("Hello, I am").completions[0].output_text)
Access to LightOn Paradigm
Learn more about Paradigm: https://www.lighton.ai/fr/paradigm. For a list of use cases: https://www.lighton.ai/fr/blog/ai-use-case-5.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
paradigm_client-0.4.tar.gz
(22.2 kB
view hashes)
Built Distribution
Close
Hashes for paradigm_client-0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76c7679ac28c41fbd0af596440869118a2b07beecbd9e48b37387ae81ea0e1c9 |
|
MD5 | c27122b91f02d32396e1f7133361c6ba |
|
BLAKE2b-256 | 09e93bc0ea2b9c3019942ad6bf4a7ec2379e41bef2421c20d0856ec25620b162 |