feat(provider): add Eden AI as an OpenAI-compatible provider#2101
Open
MVS-source wants to merge 1 commit into
Open
feat(provider): add Eden AI as an OpenAI-compatible provider#2101MVS-source wants to merge 1 commit into
MVS-source wants to merge 1 commit into
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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/modelnaming 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— newLLMType.EDENAImetagpt/provider/openai_api.py—LLMType.EDENAIadded toOpenAILLM's@register_provider([...])list (base URL taken from config)config/examples/edenai.yaml— example configExample config
Testing
LLMType.EDENAIimports cleanly;OpenAILLM's@register_providerlist includesLLMType.EDENAI, soedenairoutes to the shared OpenAI-compatible client (same mechanism as the sibling providers)./v3/chat/completions→ 200).api_key); never hardcoded.