Skip to main content

A blazing-fast gateway for asynchronous, high-concurrency LLM requests (OpenAI, Claude, etc.).

Project description

FluxLLM

A blazing-fast gateway for asynchronous, high-concurrency LLM requests (OpenAI, Claude, etc.). Dynamically caches responses to slash latency and costs while scaling seamlessly across AI providers. Built for developers who demand speed without compromise.

Features

  • Asynchronous, high-concurrency requests
  • Dynamically caches responses to slash latency and costs
  • Seamlessly scales across AI providers
  • Simple to use
  • Extensible to add new AI providers

Installation

pip install fluxllm

Usage

from fluxllm.clients import FluxOpenAI

client = FluxOpenAI(
    base_url=args.base_url,
    api_key=args.api_key,
    cache_file=args.cache_file,
    max_retries=args.max_retries,
    max_parallel_size=args.max_parallel_size,
)

responses = client.request(
    requests=requests,
    model=args.model,
    max_tokens=args.max_tokens,
    temperature=args.temperature,
    top_p=args.top_p,
)

contents = [response.choices[0].message.content for response in responses]

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

fluxllm-0.1.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

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

fluxllm-0.1.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file fluxllm-0.1.0.tar.gz.

File metadata

  • Download URL: fluxllm-0.1.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for fluxllm-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1efff44f00d7bdcb4f0b90f1a50bade62d3388c85f3a3a9b924f233ab365a84e
MD5 cce00130ed85c152ffb54d8fafc6735f
BLAKE2b-256 a3efc2b243e52158ab968f72e4955daf55f524968e3e591aa3fbe911817d9f67

See more details on using hashes here.

File details

Details for the file fluxllm-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: fluxllm-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for fluxllm-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0fd2b1724c7f11e44d39df58dd3c21e37f90a8f42706fe885f981b8f849d4719
MD5 0be11022ace2a7825df592a8884c64b1
BLAKE2b-256 ead28f0e66487aa3d4ec0f058bece5b19a030e15dee5b4ec4732e5a90c85fc85

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