Library to call Open AI gpt3.5t-turbo and collect reponses and check for Accuracy
Project description
xiomedon
Library to call Open AI gpt3.5t-turbo and collect reponses and check for Accuracy
Features
v0.0.1
Call Open AI gpt3.5 and fetch respones
Installation
-
Download and install the latest version of python. Open a terminal and check that it is installed.
Windows
py --version
Linux/MAC OS
python3 --version
-
Make sure you have upgraded version of pip.
Windows
py -m pip install --upgrade pip
Linux/MAC OS
python3 -m pip install --upgrade pip
-
Install xiomedon using pip.
Windows
pip install xiomedon
Linux/MAC OS
python3 -m pip install xiomedon
-
Check that the package was installed
pip show xiomedon
Usage
import os
import xiomedon as x
# Set your OpenAI API key
os.environ["OPENAI_API_KEY"] = "your-openai-key"
# 'xiomedon` provides a function `invoke_openai` caling gpt3.5 turbo and returns string with response
response = x.invoke_openai("what is the capital of Austria?")
print(response)
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
xiomedon-1.0.2.tar.gz
(9.6 kB
view hashes)