Skip to content

feat: add Eden AI as a model provider - #1002

Merged
Spherrrical merged 1 commit into
katanemo:mainfrom
MVS-source:add-edenai-provider
Jul 29, 2026
Merged

Spherrrical merged 1 commit into
katanemo:mainfrom
MVS-source:add-edenai-provider

Conversation

@MVS-source

Copy link
Copy Markdown
Contributor

What

Adds Eden AI as a model provider. Eden AI is an EU-based, OpenAI-compatible gateway that routes to many upstream providers behind a single API key. Models are addressed as <provider>/<model>, e.g. openai/gpt-4o-mini or anthropic/claude-haiku-4-5.

Mirrors the existing OpenRouter treatment exactly, since both are broad OpenAI-compatible gateways with no static model list:

  • crates/hermesllm/src/providers/id.rs: new ProviderId::EdenAI variant, parsing (edenai), Display, routed as OpenAIChatCompletions across all client API shapes (same as OpenRouter), same cache marker strategy (content-part cache_control for Anthropic-family models over chat completions)
  • cli/planoai/defaults.py: zero-config default entry (EDENAI_API_KEY, base_url: https://api.edenai.run/v3)
  • cli/planoai/config_generator.py and config/plano_config_schema.yaml: added edenai to the supported provider lists, same spot as openrouter

Testing

  • cargo test -p hermesllm: all tests pass, including new EdenAI-specific ones (parsing, compatible_api_for_client, cache marker strategy, empty models list)
  • cargo fmt --check and cargo clippy: clean
  • uv run pytest (cli): all tests pass, including new ones for defaults.py (provider default config, env-key promotion) and config_generator.py (schema validation)
  • Tested live against the real Eden AI API (https://api.edenai.run/v3/chat/completions) across three underlying vendors, all HTTP 200:
    • openai/gpt-4o-mini
    • mistral/mistral-small-latest
    • anthropic/claude-haiku-4-5

fixes #997

Eden AI is an EU-based, OpenAI-compatible gateway that routes to many
upstream providers behind a single API key. Models are addressed as
<provider>/<model>, e.g. openai/gpt-4o-mini or anthropic/claude-haiku-4-5.

Mirrors the existing OpenRouter treatment exactly: added to the ProviderId
enum, routed as OpenAIChatCompletions across all client API shapes, same
cache marker strategy (content-part cache_control for Anthropic-family
models over chat completions), no static model list.

- crates/hermesllm/src/providers/id.rs: ProviderId::EdenAI variant, parsing,
  Display, routing, cache strategy, unit tests
- cli/planoai/defaults.py: zero-config default (EDENAI_API_KEY, base_url)
- cli/planoai/config_generator.py + config/plano_config_schema.yaml: added
  edenai to the supported provider lists
- Tests added on both the Rust and Python CLI side

Tested live against the real Eden AI API across three vendors
(openai/gpt-4o-mini, mistral/mistral-small-latest,
anthropic/claude-haiku-4-5), all returning HTTP 200.

Fixes katanemo#997
@Spherrrical
Spherrrical merged commit 72304e3 into katanemo:main Jul 29, 2026
MVS-source added a commit to edenai/docs that referenced this pull request Aug 31, 2026
* docs: add Plano, Repowise and PyGPT integration guides

The last three merged Eden AI integrations without a page here.

  Plano     katanemo/plano#1002        2026-07-29   AI Gateway
  Repowise  repowise-dev/repowise#705  2026-07-07   AI Frameworks
  PyGPT     szczyglis-dev/py-gpt#194   2026-07-22   Chat UI

Configuration is lifted from the merged upstream code, not reconstructed:

- Plano: the ProviderDefault in cli/planoai/defaults.py and the wildcard
  config in their own cli/test/test_config_generator.py fixture. The Rust
  ProviderId::EdenAI parses 'edenai' and rejects 'eden_ai', and carries no
  hardcoded model list, the same treatment as OpenRouter.
- Repowise: the CLI flags and env vars from the CONFIG.md and .env.example
  we contributed, including EDENAI_BASE_URL covering both the LLM and the
  embedder.
- PyGPT: the api_key_edenai and api_endpoint_edenai settings keys, their
  default endpoint value and the 'Eden AI' settings tab.

Every model id cited was checked against the live catalogues.

* docs: align integration page metadata with the existing pages

Match the conventions already used by the merged integration pages:
schema.org about values per nav section, Title Case keywords capped at
five, and code block titles that name the file or tool instead of
repeating the language.
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.

Add Eden AI as a first-class LLM provider (EU, OpenAI-compatible gateway)

2 participants