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 hashes)
Built Distribution
Close
Hashes for xprompt_client-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e0a9fb513a1f89c688c6787a2859d053b2aa59d791b1ba19df0306d3847da2b |
|
MD5 | 13a4bb4896201645cf4527cf17afe188 |
|
BLAKE2b-256 | fbb211406810b6aaf809d9ad023703ceb9011a7ced0ce1de54fe21ac1989dded |