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.3.tar.gz
(21.3 kB
view hashes)
Built Distribution
Close
Hashes for paradigm_client-0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73c7875759f01eb71988593c5624466b5a69e2cf2918d4fa26d882d38f69bc9c |
|
MD5 | 0b0d23fd812aa9865c3b44a6061755aa |
|
BLAKE2b-256 | 8a74e4265db323329cdeba1ccac4a92bcf5cf20d59d83cc4328eb5bee556ff46 |