Prem generic utils to use across Prem Components.
Project description
🛠️ Prem Utils
Utilities, and Connectors in order to interact with all Model Serving and Fine-tuning Providers.
🤙 Usage
pip install prem-utils
from prem_utils.connectors import openai
connector = openai.OpenAIConnector(api_key="")
prompt = "Hello, how are you?"
response = connector.chat_completion(model="gpt-3.5-turbo", messages=[{"role": "user", "content": prompt}])
message = response["choices"][0]["message"]["content"]
print(message)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
prem-utils-0.0.4.tar.gz
(19.2 kB
view hashes)
Built Distribution
prem_utils-0.0.4-py3-none-any.whl
(26.6 kB
view hashes)
Close
Hashes for prem_utils-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 237daaadf5860f8e578dc58974264493348037dab287cf9a6602f4bea02bc918 |
|
MD5 | 75c3440c73e8351487432b1dcf439c3e |
|
BLAKE2b-256 | c1b155549e2caf16c498e678a49990ed6116b4fd371a39bc8d3b1bc5000fca54 |