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.5.tar.gz
(19.3 kB
view details)
Built Distribution
File details
Details for the file prem-utils-0.0.5.tar.gz
.
File metadata
- Download URL: prem-utils-0.0.5.tar.gz
- Upload date:
- Size: 19.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca2f68b7ea63f3116cb61bd6cbb03bcd434dec01d03fb2ef5c1b3a6250ff3e35 |
|
MD5 | b87a8126feff928ddfec58ca5f8e809e |
|
BLAKE2b-256 | d7b2b56e0f3a08b180f34ebaf2f74110ecffa7bcf24f4837536076145f428df3 |
File details
Details for the file prem_utils-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: prem_utils-0.0.5-py3-none-any.whl
- Upload date:
- Size: 26.7 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 | 552dd01911204a0488235e0e073157c2eef0cf447bf68d370b2d9f020679b22e |
|
MD5 | 01cbe46b7358c4f60b957b59c23012e9 |
|
BLAKE2b-256 | 4ded734770240a6b31286093b7b1c376e349d28aacd90b520d64e5e4c339cb4b |