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)
Publish client
- update the xprompt-common version in
pyproject.toml
- bump version in
pyproject.toml
poetry build
poetry publish
git tag -a v0.1.0 -m "version 0.1.0"
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.1.2.tar.gz
(5.1 kB
view details)
Built Distribution
File details
Details for the file xprompt_client-0.1.2.tar.gz
.
File metadata
- Download URL: xprompt_client-0.1.2.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.11 Darwin/23.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1db41dcb3571e3c92aa9fff6727d049acbf489abcb371b086c81f954adfc774f |
|
MD5 | 27c8c13c26840e8f807dd26ac3e2bdf6 |
|
BLAKE2b-256 | 18157fa0bb6cdbe67f60b4394e29cebef5e041ef3a118f8b9e0914341d00a320 |
File details
Details for the file xprompt_client-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: xprompt_client-0.1.2-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.11 Darwin/23.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e0a9fb513a1f89c688c6787a2859d053b2aa59d791b1ba19df0306d3847da2b |
|
MD5 | 13a4bb4896201645cf4527cf17afe188 |
|
BLAKE2b-256 | fbb211406810b6aaf809d9ad023703ceb9011a7ced0ce1de54fe21ac1989dded |