Skip to main content

EmpirioLabs components (OpenAI-compatible chat models and image generation) as a standalone Langflow Extension Bundle.

Project description

lfx-empiriolabs

EmpirioLabs as a standalone Langflow Extension Bundle.

Ships two components for EmpirioLabs:

  • EmpirioLabs — generates text using EmpirioLabs language models. EmpirioLabs exposes an OpenAI-compatible API (https://api.empiriolabs.ai/v1), so the component reuses langchain_openai.ChatOpenAI and can output either a Model Response (Message) or a Language Model (LanguageModel) for downstream components such as Agents.
  • EmpirioLabs Image Generation — generates an image from a text prompt via the EmpirioLabs OpenAI-compatible Images endpoint (POST /v1/images/generations).

Both components fetch the live model list from the EmpirioLabs /v1/models endpoint over requests, falling back to a bundled model list. This mirrors the existing OpenAI-compatible provider bundles (novita, cometapi).

Install

pip install lfx-empiriolabs

The bundle is registered automatically via the langflow.extensions entry-point. After install, restart your Langflow server; the components will appear in the palette under the EmpirioLabs group.

You will need an EmpirioLabs API key (https://empiriolabs.ai) to run the components. By default the components read it from the EMPIRIOLABS_API_KEY environment variable.

Develop

cd src/bundles/empiriolabs
pip install -e .
lfx extension validate src/lfx_empiriolabs

Migration

Saved flows referencing the legacy class names or the old import paths under lfx.components.empiriolabs.* are rewritten to the new namespaced IDs ext:empiriolabs:EmpirioLabsModelComponent@official and ext:empiriolabs:EmpirioLabsImageGenerationComponent@official by the migration table in src/lfx/src/lfx/extension/migration/migration_table.json.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: lfx_empiriolabs-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for lfx_empiriolabs-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 60c864eab9a3fe64cc40f266e483adce8c178b8ad8ee08346d92c376e492f489
MD5 049a3d524ee380f6e544074cac3dfc47
BLAKE2b-256 dae88fa8d835602198f35088eafaa905a8d86baf248ecbc0d65761e9330eb089

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