Skip to content

feat: add EmpirioLabs provider#1690

Open
Adam-Dalloul wants to merge 3 commits into
Portkey-AI:mainfrom
Adam-Dalloul:add-empiriolabs-provider
Open

feat: add EmpirioLabs provider#1690
Adam-Dalloul wants to merge 3 commits into
Portkey-AI:mainfrom
Adam-Dalloul:add-empiriolabs-provider

Conversation

@Adam-Dalloul

Copy link
Copy Markdown

Description: (required)

  • Added EmpirioLabs to the global provider registry (src/globals.ts, src/providers/index.ts)
  • Implemented an OpenAI-compatible provider under src/providers/empiriolabs/ that reuses the open-ai-base helpers, mirroring the AI Badgr provider (feat(provider): add AI Badgr OpenAI-compatible provider #1472)
  • Provider API config sets the base URL https://api.empiriolabs.ai/v1, Bearer auth headers, and the chat completions and embeddings endpoints
  • Added chat completion, streaming, and embeddings support
  • Included a usage notebook demonstrating Portkey + EmpirioLabs

EmpirioLabs is an OpenAI-compatible gateway that serves frontier chat and embedding models and exposes a /v1/models catalog for model discovery. Docs: https://docs.empiriolabs.ai

Tests Run/Test cases added: (required)

  • Verified the project builds with npm run build and the provider compiles into the bundle
  • Verified the provider resolves from the registry with the correct base URL, auth header, and chat and embeddings endpoints
  • Validated streaming chunk transformation logic

Type of Change:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional changes)

Add EmpirioLabs as an OpenAI-compatible provider, mirroring the AI Badgr pattern and reusing the open-ai-base helpers. Supports chat completions, streaming, and embeddings. EmpirioLabs serves a /v1/models catalog for model discovery.

Signed-off-by: Adam Dalloul <47503782+Adam-Dalloul@users.noreply.github.com>
@Adam-Dalloul

Copy link
Copy Markdown
Author

Hi! This adds EmpirioLabs as a provider (chat, embeddings, image, speech, transcription). It is ready for review whenever you have a chance, CI is green, and I am happy to address any feedback. Thank you!

@Adam-Dalloul

Copy link
Copy Markdown
Author

Hi @VisargD, this provider integration is ready for review whenever you have a chance. Happy to address any feedback. Thank you!

@Adam-Dalloul

Copy link
Copy Markdown
Author

Just checking in on this one. It is ready for review whenever a maintainer has a chance, and I can turn around any requested changes quickly. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant