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.4.tar.gz
(52.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
simplyllm-0.1.4-py3-none-any.whl
(18.4 kB
view details)
File details
Details for the file simplyllm-0.1.4.tar.gz.
File metadata
- Download URL: simplyllm-0.1.4.tar.gz
- Upload date:
- Size: 52.7 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59d368ca5728c88ee0431e4b6d31d1971772be6d6596cc5edcbfe7fcd808c196
|
|
| MD5 |
922646e3716fc5d001a6b6763aedcb2b
|
|
| BLAKE2b-256 |
d78625d7d71deb9f65e8ad8a6fb3b7833c185d44cac5ac25a026d1f125238ea0
|
File details
Details for the file simplyllm-0.1.4-py3-none-any.whl.
File metadata
- Download URL: simplyllm-0.1.4-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a79f0fb323ac9e18e0002b2e08a6890f264273873eb8f146e0bf6d4fc32c3282
|
|
| MD5 |
f9cd5625e8172d61b9178596e063c025
|
|
| BLAKE2b-256 |
fcdd69bb78d39bdc2e37d5a37e66591dc5f7fb25f16b2bf9843af342920dd53c
|