Skip to main content

Autobyteus LLM Client

Async Python client for Autobyteus LLM API with HTTPS support.

Installation

pip install autobyteus_llm_client

Certificate Setup

  1. Create certificates directory:
mkdir -p certificates
  1. Copy the server's certificate:
cp path/to/server/certificates/cert.pem certificates/
  1. Get certificate fingerprint (optional but recommended):
openssl x509 -in certificates/cert.pem -fingerprint -sha256 -noout

Configuration

Set environment variables:

# Required
export AUTOBYTEUS_API_KEY='your-api-key'

# Optional (defaults shown)
export AUTOBYTEUS_LLM_SERVER_URL='https://api.autobyteus.com:8443'
export AUTOBYTEUS_CERT_FINGERPRINT='your-certificate-fingerprint'  # Optional but recommended

Usage

from autobyteus_llm_client import AutobyteusClient

async def main():
    # Initialize client (automatically uses certificate from certificates/cert.pem)
    client = AutobyteusClient()
    
    try:
        # Get available models
        models = await client.get_available_models()
        print(f"Available models: {models}")
        
        # Send a message
        response = await client.send_message(
            conversation_id="conv123",
            model_name="gpt-4",
            user_message="Hello!"
        )
        print(f"Response: {response}")
        
    finally:
        await client.close()

Security Features

  1. Certificate Verification

    • Automatic certificate validation
    • Certificate expiration checking
    • Optional fingerprint verification
    • Path validation and security checks
  2. SSL/TLS Security

    • HTTPS communication
    • Certificate-based authentication
    • Secure default configuration

Development

Requirements

  • Python 3.8 or higher
  • httpx
  • cryptography

Installing Development Dependencies

pip install -e ".[test]"

Running Tests

pytest

Building and Publishing

Build Package

python -m build

Publish to Test PyPI

python -m twine upload --repository testpypi dist/*

Publish to Production PyPI

python -m twine upload dist/*

Troubleshooting

  1. Certificate Issues

    • Verify certificate location (should be in certificates/cert.pem)
    • Check certificate expiration
    • Verify fingerprint if enabled
  2. Connection Issues

    • Verify server URL and port
    • Check certificate validity
    • Ensure API key is set correctly

License

This project is licensed under the MIT License.

Metadata

Release files for autobyteus-llm-client 1.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for autobyteus-llm-client 1.1.3
File Size Uploaded
autobyteus_llm_client-1.1.3.tar.gz 11.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for autobyteus-llm-client 1.1.3
File Interpreter ABI Platform
autobyteus_llm_client-1.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 23.8 kB

Release files / autobyteus_llm_client-1.1.3.tar.gz

Download URL autobyteus_llm_client-1.1.3.tar.gz
Size 11.9 kB
Tags Source
SHA-256 checksum
How to use checksums
aa590be836bffa848ce21bbc1a8d64385b60689aa2bb405244ed6891be8f8513
BLAKE2b-256 checksum
How to use checksums
544e4cfcdadb18f6a6bf3b9f3a267cf03c361d8edb1a3cf066ec5b030998b684
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.12

Release files / autobyteus_llm_client-1.1.3-py3-none-any.whl

Download URL autobyteus_llm_client-1.1.3-py3-none-any.whl
Size 11.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6dd66ad517ef7f7f0b2ac0a4296f4139b3a687a99c4834fc25e086c30963ea99
BLAKE2b-256 checksum
How to use checksums
4c6bcd3b974af8fcb6a0ac1626f639f2ada434d1eb6af6e650b2362d24ead469
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.12

Release history Release notifications | RSS feed

This release

1.1.3 This release

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page