Skip to main content

llama-index-llms-ferrolabsai

PyPI version License

LlamaIndex LLM integration for Ferro Labs AI Gateway — power LlamaIndex RAG, agents, and query engines with 30+ LLM providers through a single OpenAI-compatible endpoint, with automatic fallback, load balancing, cost tracking, and observability.

Status: 0.0.1 placeholder. The full adapter (FerroLabsAI LLM class) is in active development as part of the OSS Ecosystem Roadmap, Appendix A, Phase C. The 0.0.1 release exists to reserve the package name on PyPI and signal upcoming work.


Install

pip install llama-index-llms-ferrolabsai

Planned API

from llama_index.llms.ferrolabsai import FerroLabsAI

llm = FerroLabsAI(
    model="gpt-4o",
    base_url="http://localhost:8080",   # any Ferro Labs AI Gateway instance
    api_key="sk-ferro-...",
)

resp = llm.complete("Explain RAG in one sentence.")
print(resp.text)

# Per-response Ferro metadata (additional_kwargs)
print(resp.additional_kwargs["provider"])
print(resp.additional_kwargs["cost_usd"])
print(resp.additional_kwargs["latency_ms"])
print(resp.additional_kwargs["trace_id"])

Why use this instead of OpenAI(api_base=...)?

llama_index.llms.openai.OpenAI pointed at a Ferro Labs gateway already works as a drop-in. This package adds:

  • First-class provider, cost_usd, latency_ms, trace_id exposure on additional_kwargs.
  • Native support for Ferro extras: route_tag, template_id, template_variables.
  • Streaming + async modes that surface all 30+ providers transparently.
  • A tested compatibility matrix against LlamaIndex's chat / completion / streaming interfaces.

Upstream mirror

Once stable, this package will also be mirrored as a PR to run-llama/llama_index under llama-index-integrations/llms/llama-index-llms-ferrolabsai/ for first-party hub discoverability.

Related

License

Apache-2.0

Metadata

Release files for llama-index-llms-ferrolabsai 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llama-index-llms-ferrolabsai 0.0.1
File Size Uploaded
llama_index_llms_ferrolabsai-0.0.1.tar.gz 5.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for llama-index-llms-ferrolabsai 0.0.1
File Interpreter ABI Platform
llama_index_llms_ferrolabsai-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.8 kB

Release files / llama_index_llms_ferrolabsai-0.0.1.tar.gz

Download URL llama_index_llms_ferrolabsai-0.0.1.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
975fdb161191dc6aced7ab9a3663a4c9de342515385ef016517e2fd3572782f6
BLAKE2b-256 checksum
How to use checksums
db67dad18292c7df57b4ccda0a563190071ce4d60697bc76f4dd41aa5e314fae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 14, 2026.

Transparency log

Release files / llama_index_llms_ferrolabsai-0.0.1-py3-none-any.whl

Download URL llama_index_llms_ferrolabsai-0.0.1-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eb9e0dbe66d4539f13c25813d1e37375d47c29f1434f4888dd10ee839be01ace
BLAKE2b-256 checksum
How to use checksums
3409e677c282bd25fd2160317b2455d0679daed715dcf40e49a7fffcd2ee2546
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 14, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page