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 hashes)
Built Distribution
prem_utils-0.0.3-py3-none-any.whl
(25.2 kB
view hashes)
Close
Hashes for prem_utils-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0465b9576db22ef71ed35719fa6c77b0f06f87ebd0dabdd1c607fac300182e3e |
|
MD5 | 1d51b83797c8576131dd8020e102c75b |
|
BLAKE2b-256 | c91056030592c94a616671e8a4f7b23e86d6f282ed4708847e74e8fbd2b04456 |