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.# OpenSesamePythonSDK

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.2.6.tar.gz (8.8 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.2.6-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: opensesame-sdk-0.2.6.tar.gz
  • Upload date:
  • Size: 8.8 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.2.6.tar.gz
Algorithm Hash digest
SHA256 b267437449d5cb0ba12ce1465177888f99521128709152b146c32f19a9baf9b3
MD5 e15baae324a66365f68191d3288d0df0
BLAKE2b-256 9600f74aeb3fd1999108925dbd3d8fa486553abd9aa44d4b45a265286ea6e429

See more details on using hashes here.

File details

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

File metadata

  • Download URL: opensesame_sdk-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 8.9 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.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 60c7598ef43cda1ed2d1903793429df5ac66d1c1e43871831ad62067b82d9249
MD5 50f8e5e974c8121a4da099186af2d2c0
BLAKE2b-256 f7589a9eabe3954505438d63adb9f1de1173b8f63add1cee4e36aa4282a66489

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