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.7.tar.gz
(24.2 kB
view details)
Built Distribution
File details
Details for the file prem-utils-0.0.7.tar.gz
.
File metadata
- Download URL: prem-utils-0.0.7.tar.gz
- Upload date:
- Size: 24.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb83e668781b026adcac50c00bbc24a1d8e5476f2ed6a2a61f1ecce1b1faa4a4 |
|
MD5 | fdf2fcd6eccb1e75ee3e42fb697c1eb1 |
|
BLAKE2b-256 | 0bc2ef6412c36b4879b14a69ad4cafc10a7cc7f017db696d2d8e7e978238aaa9 |
File details
Details for the file prem_utils-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: prem_utils-0.0.7-py3-none-any.whl
- Upload date:
- Size: 33.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd5242bdcd1cf3e70293319f36a809e043f430b0c4ae91bd140a7591fed60d1f |
|
MD5 | 8b412e57c0b3fa641094d32e749281f1 |
|
BLAKE2b-256 | a73692b999545fe305a0d87afaaba69799e653715373f3a02997c0a65de61bc6 |