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 hashes)
Built Distribution
prem_utils-0.0.5-py3-none-any.whl
(26.7 kB
view hashes)
Close
Hashes for prem_utils-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 552dd01911204a0488235e0e073157c2eef0cf447bf68d370b2d9f020679b22e |
|
MD5 | 01cbe46b7358c4f60b957b59c23012e9 |
|
BLAKE2b-256 | 4ded734770240a6b31286093b7b1c376e349d28aacd90b520d64e5e4c339cb4b |