Skip to main content

No project description provided

Project description

XPrompt client

client for XPrompt

Example

import xprmopt
api_key_response = xprompt.login(user_email='..', password='..')

xprompt.api_key = api_key_response['access_token']
xprompt.openai_api_key = ""


prompt = """tell me a joke"""

r = xprompt.OpenAIChatCompletion.create(model="gpt-3.5-turbo", messages=[{"role": "user", "content": prompt}], temperature=0)
print(r)

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

xprompt_client-0.0.2.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

xprompt_client-0.0.2-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file xprompt_client-0.0.2.tar.gz.

File metadata

  • Download URL: xprompt_client-0.0.2.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.11 Darwin/22.6.0

File hashes

Hashes for xprompt_client-0.0.2.tar.gz
Algorithm Hash digest
SHA256 8b12fdcc0650c48837dad689b945da60b1b59b6ddbff4ec36c60db8b6ee38097
MD5 3ba6463ecf02aff848b98cb024bbdb3d
BLAKE2b-256 5f1091fbd9e10cf77e6cad9f5fef1261adc7a3290a84967e1ec65129cca2aa46

See more details on using hashes here.

File details

Details for the file xprompt_client-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: xprompt_client-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.11 Darwin/22.6.0

File hashes

Hashes for xprompt_client-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 600b84da1cecb6c93ff11a2cc65916edaf04d9f251cfcff4cc4c5a1c9fb4131c
MD5 1348357914f36794f9773fc1eebb9501
BLAKE2b-256 dbde939f7b9d9c5cea968b0bfbc846ccd563dc2fde2099db3ab4ec8fceb229c1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page