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.10.tar.gz (17.9 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.10-py3-none-any.whl (19.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ext_llm-0.1.10.tar.gz
  • Upload date:
  • Size: 17.9 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.10.tar.gz
Algorithm Hash digest
SHA256 68bf78b1a667819cb44843f51039214f79a4fc3c7d244ec6675b39d8e469f895
MD5 150fd64453f15f2e5e75abdb755dbc06
BLAKE2b-256 9ffe7f648f6da3816723a6bb17cc5472154ef1b74c780cf8a9d8cb8aea688514

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ext_llm-0.1.10-py3-none-any.whl
  • Upload date:
  • Size: 19.7 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.10-py3-none-any.whl
Algorithm Hash digest
SHA256 bea1812bc20b7a11e5a91b7737876998d2b8f490c51c0831110efc7f97244fea
MD5 c9ac120c2854ffcedb86b87241367a42
BLAKE2b-256 470eb357f38ad8fd06c119ef76f441ff383ddf9facddc5f55e89b2355316ea39

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