Skip to content

feat(provider): add Eden AI as an OpenAI-compatible provider#2101

Open
MVS-source wants to merge 1 commit into
FoundationAgents:mainfrom
MVS-source:feat/edenai-provider
Open

feat(provider): add Eden AI as an OpenAI-compatible provider#2101
MVS-source wants to merge 1 commit into
FoundationAgents:mainfrom
MVS-source:feat/edenai-provider

Conversation

@MVS-source

Copy link
Copy Markdown

Description

Adds Eden AI (https://www.edenai.co) as an OpenAI-compatible provider. Eden AI is an EU-hosted gateway that exposes 100+ models from many providers (OpenAI, Anthropic, Google, Mistral, DeepSeek, …) through a single endpoint and API key. Models use the provider/model naming scheme.

Registered the same way as the other OpenAI-compatible providers (Moonshot, Mistral, DeepSeek, OpenRouter, SiliconFlow, …), which all reuse OpenAILLM:

  • metagpt/configs/llm_config.py — new LLMType.EDENAI
  • metagpt/provider/openai_api.pyLLMType.EDENAI added to OpenAILLM's @register_provider([...]) list (base URL taken from config)
  • config/examples/edenai.yaml — example config

Example config

llm:
  api_type: edenai
  base_url: "https://api.edenai.run/v3"
  api_key: "YOUR_API_KEY"
  model: anthropic/claude-sonnet-4-5

Testing

  • LLMType.EDENAI imports cleanly; OpenAILLM's @register_provider list includes LLMType.EDENAI, so edenai routes to the shared OpenAI-compatible client (same mechanism as the sibling providers).
  • Example YAML validated.
  • Verified live against the Eden AI API (/v3/chat/completions → 200).
  • API key comes from config (api_key); never hardcoded.

Eden AI (https://www.edenai.co) is an EU-hosted, OpenAI-compatible gateway exposing 100+ models from many providers through a single endpoint and API key. Models use the provider/model naming scheme.

Registers it the same way as the other OpenAI-compatible providers (Moonshot, Mistral, DeepSeek, OpenRouter, ...): adds LLMType.EDENAI and includes it in OpenAILLM's @register_provider list, so it reuses the shared OpenAI-compatible client with the base_url from config. Adds a config example.

API key via config/env (api_key); never hardcoded.

Signed-off-by: Victor M. SMITH <72023257+MVS-source@users.noreply.github.com>
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