Skip to main content

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

Metadata

Release files for opensesame-sdk 0.2.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for opensesame-sdk 0.2.7
File Size Uploaded Provenance Actions
opensesame-sdk-0.2.7.tar.gz 8.8 kB Without provenance Details for opensesame-sdk-0.2.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for opensesame-sdk 0.2.7
File Interpreter ABI Platform Actions
opensesame_sdk-0.2.7-py3-none-any.whl Python 3 none any Details for opensesame_sdk-0.2.7-py3-none-any.whl

Total release size: 17.8 kB

Release files / opensesame-sdk-0.2.7.tar.gz

Download URL opensesame-sdk-0.2.7.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
710a919ecf222cd41b12d7159e13156d506135a306c0e460015b49175ca2c48b
BLAKE2b-256 checksum
How to use checksums
b528110c3b02e08a51a58db2326396b93f6c395d2abb4aac03f6f532ee7827d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.0

Release files / opensesame_sdk-0.2.7-py3-none-any.whl

Download URL opensesame_sdk-0.2.7-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7a7b80726841c7ecd8183ff497c2017b41c5df0a1878381a60801da253de3697
BLAKE2b-256 checksum
How to use checksums
30f3606713d4f232fbd9cd6c8800fc0c8a2e3b5a3758105f9608f85c133f14cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.0

Security for opensesame-sdk 0.2.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page