docs(models): document Eden AI as an EU OpenAI-compatible gateway#198
Open
Victor M. SMITH (MVS-source) wants to merge 1 commit into
Open
docs(models): document Eden AI as an EU OpenAI-compatible gateway#198Victor M. SMITH (MVS-source) wants to merge 1 commit into
Victor M. SMITH (MVS-source) wants to merge 1 commit into
Conversation
OpenScience already supports any OpenAI-compatible provider via a config.provider block, so this documents Eden AI (a French, EU-based gateway) in the Models & providers guide: an openscience.json provider block using @ai-sdk/openai-compatible with base URL https://api.edenai.run/v3, vendor-prefixed model ids, and a note on the EU data-residency endpoint (https://api.eu.edenai.run/v3) with zero data retention for GDPR-sensitive teams.
|
Victor M. SMITH (@MVS-source) is attempting to deploy a commit to the InkVell Team on Vercel. A member of the Team first needs to authorize it. |
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.
What
Documents Eden AI as a hosted OpenAI-compatible gateway in the Models & providers guide. No code change is needed: OpenScience already loads any OpenAI-compatible provider from a
config.providerblock (same mechanism as the local-models guide), so this adds a worked example plus the EU data-residency angle.Eden AI is a French, EU-based OpenAI-compatible gateway. Example
openscience.json:{ "provider": { "edenai": { "name": "Eden AI", "npm": "@ai-sdk/openai-compatible", "options": { "baseURL": "https://api.edenai.run/v3", "apiKey": "your-edenai-key" }, "models": { "openai/gpt-4o-mini": {}, "anthropic/claude-sonnet-4-5": {}, "mistral/mistral-small-latest": {} } } } }Model ids are vendor-prefixed, so they run as
edenai/openai/gpt-4o-mini,edenai/anthropic/claude-sonnet-4-5, etc.Why Eden AI (EU / GDPR / data residency)
https://api.eu.edenai.run/v3) that processes and routes prompts and outputs within the European Union (non-EU models are rejected).Refs: https://www.edenai.co/post/eu-ai-endpoint-how-to-keep-ai-requests-and-data-in-europe and https://www.edenai.co/data-compliancy
Changes
frontend/docs/src/content/openscience/models.mdx: a "Hosted OpenAI-compatible gateways (EU data residency)" section with the Eden AI config block, mirroring the existing local-models config style.Testing
@ai-sdk/openai-compatiblewith the block'sbaseURL. I confirmed against the real Eden AI API with a real key using that exact adapter (createOpenAICompatible({ baseURL: "https://api.edenai.run/v3", apiKey })), which returns completions foropenai/gpt-4o-mini,anthropic/claude-sonnet-4-5, andmistral/mistral-small-latest(the vendor-prefixed id is sent verbatim, so no double prefix is needed here).I saw CONTRIBUTING asks to open an issue/discussion before larger changes; happy to convert this to an issue first, or to adjust the wording/placement.