Anindyadeep / prem-utils

🛠️ Utils to manage connectors and common utilities across Prem Components.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🛠️ 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)

About

🛠️ Utils to manage connectors and common utilities across Prem Components.

License:MIT License


Languages

Language:Python 100.0%