Skip to main content

Free AI LLM client with multi-provider fallback and rate limiting

Project description

SimplyLLM

OpenAI SDK compatible multi-provider LLM client with automatic fallback and rate limiting.

Quick Start

from simplyllm import SimplyLLM

llm = SimplyLLM()
result = llm.chat([{"role": "user", "content": "hello"}])
print(result.content)

API

# Chat completion (OpenAI format)
result = llm.chat(messages, model=None, temperature=None, max_tokens=None,
                  debug_provider=None, max_wait=None)

# Shortcut for single prompt
result = llm.complete("hello", max_tokens=500)

Parameters

Parameter Type Description
messages list[dict] OpenAI format message list
model str Model override (optional)
temperature float 0.0-2.0 (optional)
max_tokens int Max output tokens (optional)
debug_provider str Force provider: "cerebras" "groq" "openrouter" "nvidia_nim" (optional)
max_wait float Max wait for capacity in seconds, default 80 (optional)

Result

Field Type Description
content str Generated text
provider str Provider that fulfilled the request
model str Model used
latency float Time taken in seconds
attempts list[dict] Failed attempts before success

Providers

Provider Model RPM
cerebras zai-glm-4.7 5
groq openai/gpt-oss-120b 30
openrouter google/gemma-4-31b-it:free 20
nvidia_nim openai/gpt-oss-120b 40

Server

make up        # start server on :10000
make down      # stop server
make test      # run benchmark

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

simplyllm-0.1.3.tar.gz (52.3 kB view details)

Uploaded Source

Built Distribution

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

simplyllm-0.1.3-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

Details for the file simplyllm-0.1.3.tar.gz.

File metadata

  • Download URL: simplyllm-0.1.3.tar.gz
  • Upload date:
  • Size: 52.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Oracle Linux Server","version":"9.7","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for simplyllm-0.1.3.tar.gz
Algorithm Hash digest
SHA256 d71a498ee53c057330b413347f35a68f35e81c29c99fba15e7292402f56b2013
MD5 974e22f50d885382c0951b4a7c98ac4f
BLAKE2b-256 f0a27590514b8690a9d87a1b473aabc7c6b73669565214d8d95da1d81424ff47

See more details on using hashes here.

File details

Details for the file simplyllm-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: simplyllm-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 18.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Oracle Linux Server","version":"9.7","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for simplyllm-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f8e4226e7795ac2b23a3c1c6d192b25d312298cf43691be88319d6129be2557e
MD5 d43b9a9eaff45e11755d9d2c32f0e83f
BLAKE2b-256 297fcef06d6ea74895da64480e05a5ef4539ec5dfd37cb011056ca822eecdfff

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