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.3.tar.gz
(18.4 kB
view details)
Built Distribution
File details
Details for the file prem-utils-0.0.3.tar.gz
.
File metadata
- Download URL: prem-utils-0.0.3.tar.gz
- Upload date:
- Size: 18.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b38f6fa58147b4a7ff9633106177b287fea56e42e2360bc8a38133b29f103e22 |
|
MD5 | 328e1b0e9cab6a37e3ccf07aeabc6ec2 |
|
BLAKE2b-256 | 691e4a397a4b3f0fd9b8950138b037a8adfc0b34ea0b9ddeef688310fa5a2fcd |
File details
Details for the file prem_utils-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: prem_utils-0.0.3-py3-none-any.whl
- Upload date:
- Size: 25.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0465b9576db22ef71ed35719fa6c77b0f06f87ebd0dabdd1c607fac300182e3e |
|
MD5 | 1d51b83797c8576131dd8020e102c75b |
|
BLAKE2b-256 | c91056030592c94a616671e8a4f7b23e86d6f282ed4708847e74e8fbd2b04456 |