Commonbase Python SDK
Commonbase allows developers to integrate with any popular LLM API provider without needing to change any code. The SDK helps with collecting data and feedback from the users and helps you fine-tune models for your specific use case.
Installation
pip install commonbase
Usage
A Project ID and API Key are required for all Commonbase requests. You can find your project ID and generate an API key in the Commonbase Dashboard.
To create a text completion, provide your Project ID, API Key, and prompt to
Completion.create.
import commonbase
result = commonbase.Completion.create(
api_key="API_KEY",
project_id="PROJECT_ID",
prompt="Hello!"
)
print(result.best_choice.text)
To stream a completion as it is generated, use ChatCompletion.stream.
Metadata
Release files for commonbase 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| commonbase-0.4.1.tar.gz | 23.2 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| commonbase-0.4.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.2 MB
Release files / commonbase-0.4.1.tar.gz
| Download URL | commonbase-0.4.1.tar.gz |
|---|---|
| Size | 23.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
13a3f35535ab2ba4efcc0a041d3bb341355d7ecbf897d1015fa72d2b0c4af78b
|
|
BLAKE2b-256 checksum How to use checksums |
8ea5ca1f6757db958dbd115b0cbaa57cf9dfc32b8051ef6da13b380749d361d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Release files / commonbase-0.4.1-py3-none-any.whl
| Download URL | commonbase-0.4.1-py3-none-any.whl |
|---|---|
| Size | 12.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7e14963b7d0b9893b014b7586910bdadcc20b549b21b4f24cb1edd85e25c88f5
|
|
BLAKE2b-256 checksum How to use checksums |
bcf95c72846b396a9c51f524c8c776856d5a32162fc254491d66e8b1efa16c41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Security for commonbase 0.4.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.