Skip to content

Add Eden AI provider#187

Open
MVS-source wants to merge 1 commit into
token-js:mainfrom
MVS-source:add-edenai-provider
Open

Add Eden AI provider#187
MVS-source wants to merge 1 commit into
token-js:mainfrom
MVS-source:add-edenai-provider

Conversation

@MVS-source

Copy link
Copy Markdown

Thanks for token.js!

All Submissions:

  • Have you read the Contributing guidelines?
  • Have you updated the documentation with pnpm docs?
  • Have you ran the linter with pnpm lint:fix?
  • Have you successfully ran the tests locally with pnpm test?
  • Have you added a changeset file with pnpm changeset?
  • Relevant issue: Add Eden AI as a provider #186

New Feature Submissions:

  • Have you added new tests for your feature?
  • Summary:

This adds Eden AI as a provider. Eden AI is an EU-based, OpenAI-compatible gateway: one API key reaches models from many providers (OpenAI, Anthropic, Google, Mistral, Cohere and more) with ids like openai/gpt-4o-mini, and it offers EU data residency, zero data retention, a DPA and SOC 2 / ISO 27001.

Implementation mirrors the Requesty handler: a dedicated EdenAIHandler reuses the OpenAI SDK with a fixed base URL (https://api.edenai.run/v3) and the EDENAI_API_KEY env var, registered as an aggregator (models: true) so any vendor-prefixed id is accepted, with no new dependency. Added the models entry, the type unions, the handler registry entry, the docs (provider page + tables), a changeset, and a live manual test in test/manual/edenai.test.ts.

Verified locally: pnpm build:tsc, pnpm lint:check, pnpm test (118 pass) and pnpm docs:check are clean, and the live manual test passes against the real Eden AI API (completion and streaming). The manual test asserts only on returned content.

Open question for maintainers: I registered Eden AI as an aggregator (models: true, like openrouter/requesty) since its catalog is large and vendor-prefixed. Happy to switch to a curated model list if you prefer.

For transparency: implemented with Claude Code by an Eden AI team member and verified live. We will maintain the provider.

Add Eden AI (an EU-based, OpenAI-compatible gateway) as a provider,
following the aggregator pattern used by openrouter/requesty. A dedicated
EdenAIHandler reuses the OpenAI SDK with a fixed base URL
(https://api.edenai.run/v3) and the EDENAI_API_KEY env var; models is set
to true so any vendor-prefixed id (e.g. openai/gpt-4o-mini) is accepted.
Includes the models entry, type unions, handler registry, docs, a
changeset and a live manual test. Verified live against the real API.
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