Skip to main content

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

  1. 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
    
  2. Make sure you have upgraded version of pip.

    Windows

    py -m pip install --upgrade pip
    

    Linux/MAC OS

    python3 -m pip install --upgrade pip
    
  3. Install xiomedon using pip.

    Windows

    pip install xiomedon
    

    Linux/MAC OS

    python3 -m pip install xiomedon
    
  4. 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


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)

Uploaded Source

Built Distribution

xiomedon-1.0.2-py3-none-any.whl (8.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page