Skip to main content

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.

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

opensesame-sdk-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

opensesame_sdk-0.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file opensesame-sdk-0.1.0.tar.gz.

File metadata

  • Download URL: opensesame-sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.0

File hashes

Hashes for opensesame-sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 518327f0bba8ebc900dddfbba3a488b2eaf698a3ee11e76b834c912c0bc1302a
MD5 8b44e6893e57d6d79280c107b70e6820
BLAKE2b-256 49f0f322dc663b5054b9fb3ced9825541897737460aaacf9688c3cd7a36e322c

See more details on using hashes here.

File details

Details for the file opensesame_sdk-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: opensesame_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.0

File hashes

Hashes for opensesame_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fe9543e839f6e017b71dfd1a2801a1862d5c6616afcedb9399e5ec8071111465
MD5 27c52a39223fc796733e1d8bfe5ce60f
BLAKE2b-256 b340766754076dd5ecba5c6aa9e56b910430de14bc703a59f8862096ce4114a5

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