feat: add Eden AI provider (OpenAI-compatible, 600+ models, EU/GDPR)#81
Open
MVS-source wants to merge 1 commit into
Open
feat: add Eden AI provider (OpenAI-compatible, 600+ models, EU/GDPR)#81MVS-source wants to merge 1 commit into
MVS-source wants to merge 1 commit into
Conversation
2f9333b to
b8a6813
Compare
Author
|
Hi Fast-Editor team 👋 This PR adds Eden AI as a native provider, built by mirroring your OpenRouter path 1:1 (reuses the existing Anthropic↔OpenAI converters — no new conversion code). We live-tested it against For Lynkr users it means one EU/GDPR-compliant key → 600+ models, OpenAI- and Anthropic-compatible — so it fits both the OpenAI-format path and the Claude Code / Cursor / Codex passthrough, and pairs naturally with tier routing. Happy to adjust to your conventions, and we're glad to maintain the provider going forward. Would love a review 🙏 — and thanks for building Lynkr! — Eden AI |
78b1f99 to
cee3cd0
Compare
Adds Eden AI as a native provider, mirroring the existing OpenRouter (OpenAI-compatible) path. Eden AI exposes both OpenAI- and Anthropic- compatible endpoints at https://api.edenai.run/v3 with provider/model naming, giving one EU/GDPR-compliant key across 600+ models. - config: SUPPORTED_MODEL_PROVIDERS, config.edenai, EDENAI_* env + reload - clients/databricks: invokeEdenAI() + initial/fallback dispatch - orchestrator: endpoint lookup, tool passthrough, response conversion, headroom/caveman provider sets - api: provider listing + /v3/embeddings parity - routing, provider-capabilities (reasoning_content), prompt-cache, dashboard - bin/lynkr-init wizard, .env.example, documentation/providers.md - test/edenai-integration.test.js + CI workflow (secret scoped to the live-test step only; self-skips on fork PRs) Live-tested against api.edenai.run/v3: chat, tool-calling across OpenAI & Anthropic models (finish_reason: tool_calls), and streaming.
cee3cd0 to
cc526ff
Compare
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.
Summary
Adds Eden AI as a native provider, mirroring the existing OpenRouter (OpenAI-compatible) path. Eden AI is an OpenAI-compatible gateway (
https://api.edenai.run/v3/chat/completions,provider/modelnaming) giving one key + EU/GDPR-compliant access to 600+ models across OpenAI, Anthropic, Google, Mistral, etc. It exposes both OpenAI- and Anthropic-compatible endpoints, so it fits both Lynkr's OpenAI-format path and the Claude Code / Cursor / Codex passthrough, and pairs naturally with tier routing (cheap model for SIMPLE → frontier for REASONING, one key).What changed
src/config/index.js):edenaiinSUPPORTED_MODEL_PROVIDERS,config.edenai,EDENAI_API_KEY/MODEL/EMBEDDINGS_MODEL/ENDPOINT, reload path.src/clients/databricks.js):invokeEdenAI()mirroringinvokeOpenRouter, reusing the shared Anthropic↔OpenAI converters; initial + fallback branches.src/orchestrator/index.js): endpoint lookup, tool passthrough, response conversion, headroom/caveman provider sets.src/api/openai-router.js,src/api/providers-handler.js): provider listing +/v3/embeddingsparity.src/routing/index.js,src/routing/model-tiers.js,src/clients/provider-capabilities.js(reasoning_content),src/clients/prompt-cache-injection.js,src/dashboard/api.js.bin/lynkr-init.jswizard entry,.env.example,documentation/providers.md.test/edenai-integration.test.js,.github/workflows/edenai-integration.yml(EDENAI_API_KEY secret scoped to the live-test step only; self-skips on fork PRs).15 files, +401 / −10.
Usage
Testing
Live-tested against
api.edenai.run/v3with a real key:openai/gpt-4o,gpt-4o-mini,anthropic/claude-opus-4-8,claude-haiku-4-5→finish_reason: tool_calls✅node --test test/edenai-integration.test.js(config/routing/capabilities) ✅Notes
openrouter-utils).