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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file xiomedon-1.0.2.tar.gz.

File metadata

  • Download URL: xiomedon-1.0.2.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.7

File hashes

Hashes for xiomedon-1.0.2.tar.gz
Algorithm Hash digest
SHA256 afa677e0aa02fe824d264c62f25d90611e2d11b24ae16620855df3b1f9d5c8f8
MD5 16f36c167b49855552d91570c4ae562f
BLAKE2b-256 7784d0a7be98739280eaad42e68670f66a165b051d09127f66135326a1dbd3f5

See more details on using hashes here.

File details

Details for the file xiomedon-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: xiomedon-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.7

File hashes

Hashes for xiomedon-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3b98e29cab915fdc52519bd5c0d8b3a301f49d6e6f9217863b04c4c2492929fe
MD5 0fa2aa7a3d24eb60f41afcb91d75c4cb
BLAKE2b-256 1d5948d64defc2c86b697e36ba4c6eb901a840020ebfb1f27e78dfb3bb667878

See more details on using hashes here.

Supported by

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