A custom OpenAI client with OpenSesame integration
Project description
OpenSesame OpenAI
OpenSesame OpenAI is a custom OpenAI client that integrates with the OpenSesame service for evaluating AI responses.
Installation
You can install the OpenSesame OpenAI package using pip:
pip install opensesame-openai
Usage
Here's a quick example of how to use the OpenSesame OpenAI client:
from opensesame_openai import OpenSesame
client = OpenSesame(
api_key="your-openai-api-key",
open_sesame_key="your-opensesame-key",
project_name="your-project-name",
ground_truth="",
context=""
)
response = client.chat.completions.create(
model="gpt-3.5-turbo",
messages=[
{"role": "user", "content": "Hello, how are you?"}
]
)
print(response.choices[0].message.content)
License
This project is licensed under the MIT License - see the LICENSE file for details.# OpenSesamePythonSDK
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 opensesame-sdk-0.2.3.tar.gz.
File metadata
- Download URL: opensesame-sdk-0.2.3.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50943481789e9605112a92a6206ebfe8bee6b0f2964f9bbeec3afb914d1a2afa
|
|
| MD5 |
5974c4c6824fa0d34154d86cc417c0ac
|
|
| BLAKE2b-256 |
ee5b80118fe0da196c851d6a63485d5ba2d62eb7a3cbfa92edffb8b57394c8fb
|
File details
Details for the file opensesame_sdk-0.2.3-py3-none-any.whl.
File metadata
- Download URL: opensesame_sdk-0.2.3-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be2ac0f371da38d7b276871760243c695f102f3c90e3c3387b38e3a6dbe6dd3f
|
|
| MD5 |
b26549035c279152583e0ea8cf6e975d
|
|
| BLAKE2b-256 |
99aa197f192652bb998f45f22adcbfd256952f57aa291f54eaa3b10d86077395
|