Skip to main content

ConnectLM

The goal of ConnectLM is providing python library that enables developers to effortlessly interface with various LLMs such as OpenAI's GPT-4, Google's BERT, and others.

This package encapsulates the complex interactions with these LLMs behind intuitive and user-friendly proxy classes, allowing developers to focus on leveraging the power of these advanced models, without being bogged down by intricate API details and interfacing code.

Features (WIP)

  1. Multiple LLM Support: The package supports multiple LLMs, including but not limited to GPT-4, BERT, and others. It is also designed with flexibility in mind to accommodate future models.

  2. Uniform API: It provides a uniform API for different LLMs, allowing developers to switch between models without the need to extensively change the codebase.

  3. Error Handling: It includes built-in error handling and retry logic, ensuring that your application remains resilient against minor network hiccups and transient errors.

  4. Optimized Performance: With caching and other optimizations, this package makes sure you get the best possible performance out of your chosen LLM.

  5. Asynchronous Support: For developers who require high performance and non-blocking code execution, this package offers asynchronous methods.

Installation

You can install the connectlm package via pip:

pip install connectlm

Quickstart

Here's an example of how to connect to ChatGPT and use it to generate text:

import connectlm as cm

query = cm.QueryChat()
while (prompt := input("you : ")) != "exit":
    message = query.send(prompt)
    print(f"\n{message['role']} : {message['content']}\n")

Documentation

For detailed information on using this package, please refer to our documentation.

Contributing

We welcome contributions! Please see our contributing guidelines for details.

License

This project is licensed under the terms of the MIT license. See LICENSE for more details.

Metadata

Release files for ConnectLM 0.0.1

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

Source distribution (sdist)

Source distribution for ConnectLM 0.0.1
File Size Uploaded Provenance
ConnectLM-0.0.1.tar.gz 4.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ConnectLM 0.0.1
File Interpreter ABI Platform
ConnectLM-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 10.6 kB

Release files / ConnectLM-0.0.1.tar.gz

Download URL ConnectLM-0.0.1.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
021f44a1db9d7496f89d2adfe0df3800660b2b6bf5f81bed06c64596980745ac
BLAKE2b-256 checksum
How to use checksums
d4b919ee228f671e7941eb80c143f2b337e2e08750584cc386df8e76370ed230
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / ConnectLM-0.0.1-py3-none-any.whl

Download URL ConnectLM-0.0.1-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
306fb63b65a17929ec67e44ed5ac3f49279d65a89bbcf6ae55fe2e3c60efd319
BLAKE2b-256 checksum
How to use checksums
50e242718311d3dbefe177685cd23d6ce599704dd4d6b67169c396aa067f39d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Security for ConnectLM 0.0.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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

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