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 hashes)
Built Distribution
prem_utils-0.0.7-py3-none-any.whl
(33.3 kB
view hashes)
Close
Hashes for prem_utils-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd5242bdcd1cf3e70293319f36a809e043f430b0c4ae91bd140a7591fed60d1f |
|
MD5 | 8b412e57c0b3fa641094d32e749281f1 |
|
BLAKE2b-256 | a73692b999545fe305a0d87afaaba69799e653715373f3a02997c0a65de61bc6 |