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.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

xprompt_client-0.0.1-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xprompt_client-0.0.1.tar.gz
  • Upload date:
  • Size: 4.3 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.1.tar.gz
Algorithm Hash digest
SHA256 3c806602231d7880fbb1b42c029fe1594f668a7bacfe4bdb85deb5d80670a967
MD5 fc00300e5e17550457f97c828f61d325
BLAKE2b-256 a864f341d1b73035c48dbb1c2dc16ab4427f80f9127ddad3fe9e6c08dc6385ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xprompt_client-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a964341276d95cddb20468cfc9ec2139b1e6aaaf6b9caec7f30b6da4c828aca9
MD5 82b3617aaa0d765b565348f61f732061
BLAKE2b-256 3da7ad77769cdb726f6f6fe5122883cbbda399102921d4c510b99faf91ab6644

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