docs: add Eden AI integration guide for any-llm (Mozilla AI)#77
docs: add Eden AI integration guide for any-llm (Mozilla AI)#77MVS-source wants to merge 1 commit into
Conversation
WalkthroughAdded documentation for using any-llm with Eden AI, including setup, model usage, streaming, embeddings, environment variables, and related links. Registered the new page in the V3 AI Frameworks navigation. Changesany-llm integration documentation
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
v3/integrations/any-llm.mdx (1)
71-86: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueRemove redundant
<CodeGroup>wrappers for single snippets.As per coding guidelines, the
<CodeGroup>component is intended for multi-language code snippet tabs. Wrapping a single code block in a<CodeGroup>creates a redundant single-tab UI. Consider removing the<CodeGroup>wrapper for standalone snippets.
v3/integrations/any-llm.mdx#L71-L86: Remove the<CodeGroup>tags surrounding this single Python snippet.v3/integrations/any-llm.mdx#L92-L108: Remove the<CodeGroup>tags surrounding this single Python snippet.v3/integrations/any-llm.mdx#L135-L147: Remove the<CodeGroup>tags surrounding this single Python snippet.v3/integrations/any-llm.mdx#L151-L157: Remove the<CodeGroup>tags surrounding this single.envsnippet.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@v3/integrations/any-llm.mdx` around lines 71 - 86, Remove the redundant CodeGroup wrappers around each standalone snippet: v3/integrations/any-llm.mdx lines 71-86, 92-108, 135-147, and 151-157. Leave each Python or .env fenced code block intact while deleting only its surrounding CodeGroup tags.Source: Coding guidelines
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@v3/integrations/any-llm.mdx`:
- Line 49: Replace the generic your_api_key_here placeholder with api_token or
sandbox_api_token at v3/integrations/any-llm.mdx lines 49-49 and 153-153, using
api_token for production examples and sandbox_api_token for testing examples.
---
Nitpick comments:
In `@v3/integrations/any-llm.mdx`:
- Around line 71-86: Remove the redundant CodeGroup wrappers around each
standalone snippet: v3/integrations/any-llm.mdx lines 71-86, 92-108, 135-147,
and 151-157. Leave each Python or .env fenced code block intact while deleting
only its surrounding CodeGroup tags.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 44f64792-6e91-4be9-9af0-406e5f42de6e
⛔ Files ignored due to path filters (1)
integration-logo/any-llm-icondoc.svgis excluded by!**/*.svg
📒 Files selected for processing (2)
docs.jsonv3/integrations/any-llm.mdx
|
|
||
| <CodeGroup> | ||
| ```bash .env | ||
| EDENAI_API_KEY=your_api_key_here |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Use standardized token placeholders.
As per coding guidelines, token types in code examples should be distinguished using api_token for production and sandbox_api_token for testing (no real provider calls), rather than generic placeholders like your_api_key_here.
v3/integrations/any-llm.mdx#L49-L49: Replaceyour_api_key_herewithapi_token(orsandbox_api_token).v3/integrations/any-llm.mdx#L153-L153: Replaceyour_api_key_herewithapi_token(orsandbox_api_token).
📍 Affects 1 file
v3/integrations/any-llm.mdx#L49-L49(this comment)v3/integrations/any-llm.mdx#L153-L153
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@v3/integrations/any-llm.mdx` at line 49, Replace the generic
your_api_key_here placeholder with api_token or sandbox_api_token at
v3/integrations/any-llm.mdx lines 49-49 and 153-153, using api_token for
production examples and sandbox_api_token for testing examples.
Source: Coding guidelines
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
What
New integration guide for any-llm (Mozilla AI's unified LLM interface), under AI Frameworks.
Eden AI is a built-in any-llm provider (
src/any_llm/providers/edenai/), so this doc shows how to use it.How it works
completion(model="edenai:<provider>/<model>", ...)— theedenai:prefix + Eden AI'sprovider/modelid.https://api.edenai.run/v3and reads the key fromEDENAI_API_KEY(ENV_API_KEY_NAME = "EDENAI_API_KEY"). OptionalEDENAI_API_BASEoverride.pip install 'any-llm-sdk[edenai]'.Files
v3/integrations/any-llm.mdx(new)integration-logo/any-llm-icondoc.svg(new, square,currentColor— placeholder mark, swap for an official logo if available)docs.json—any-llmadded to AI FrameworksConventions
<TechArticleSchema>+<CodeGroup>).EDENAI_API_KEY(tool-mandated by the provider).{/* skip-test */}(any-llm-sdk isn't intests/requirements-lock.txt).Summary by CodeRabbit