Skip to main content

A wrapper library to abstract common llm providers

Project description

ext_llm - a wrapper library for common LLMs (WIP)

Installation

pip install ext_llm

Usage

import ext_llm as xllm
#read config yaml file
config : str = open("ext_llm_config.yaml").read()
#initialize extllm library
extllm = xllm.init(config)

extllm.list_available_models()

llm_client = extllm.get_model("aws")
llm_client1 = extllm.get_model("groq")

# non blocking calls
future1 = llm_client.generate_text("You're an helpful assistant", "Say hello world", 10, 0.5)
future2 = llm_client1.generate_text("You're an helpful assistant", "Say hello world", 10, 0.5)

# blocking calls waiting for the result
print(future2.result())
print(future1.result())

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

ext_llm-0.1.8.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ext_llm-0.1.8-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

Details for the file ext_llm-0.1.8.tar.gz.

File metadata

  • Download URL: ext_llm-0.1.8.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for ext_llm-0.1.8.tar.gz
Algorithm Hash digest
SHA256 b07389695b068477ce485e3104c679cfc48911d5f8c958cdbc5d3dce79e801ee
MD5 cfe81f2e4d340316ea62264f7518adf4
BLAKE2b-256 82b3c36d72af5a856b43dae0c812a779a56344a53afe40f7b0f05d3a3942310f

See more details on using hashes here.

File details

Details for the file ext_llm-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: ext_llm-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 19.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for ext_llm-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 98441bb3e5c49273fdc903a5b42c06c83a4915c4345b8805374b6028b5146dc5
MD5 9b6a15b562fa9879d92da805e248b317
BLAKE2b-256 d256b403d63c23838652afa7f9f2869edc062705041be4900de127750777862a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page