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.1Call 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 --versionLinux/MAC OS
python3 --version -
Make sure you have upgraded version of pip.
Windows
py -m pip install --upgrade pipLinux/MAC OS
python3 -m pip install --upgrade pip -
Install xiomedon using pip.
Windows
pip install xiomedonLinux/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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
afa677e0aa02fe824d264c62f25d90611e2d11b24ae16620855df3b1f9d5c8f8
|
|
| MD5 |
16f36c167b49855552d91570c4ae562f
|
|
| BLAKE2b-256 |
7784d0a7be98739280eaad42e68670f66a165b051d09127f66135326a1dbd3f5
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b98e29cab915fdc52519bd5c0d8b3a301f49d6e6f9217863b04c4c2492929fe
|
|
| MD5 |
0fa2aa7a3d24eb60f41afcb91d75c4cb
|
|
| BLAKE2b-256 |
1d5948d64defc2c86b697e36ba4c6eb901a840020ebfb1f27e78dfb3bb667878
|