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.2.1.tar.gz
(21.2 kB
view hashes)
Built Distribution
Close
Hashes for paradigm_client-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e73e3f152651a31d2c83b450a460e7a23dac1f2ce1a833caa82ed80ee9a495e |
|
MD5 | fba6e6cca5def85daf34712186bdd7c3 |
|
BLAKE2b-256 | 79b7e55de2aec5b1743e35ea2015f7209bb8adb88d2a2c66e08fbfd80c1ac3a8 |