Skip to content

docs: add GitHub Copilot integration page#58

Open
tristantelleb wants to merge 1 commit into
mainfrom
docs/github-copilot-integration
Open

docs: add GitHub Copilot integration page#58
tristantelleb wants to merge 1 commit into
mainfrom
docs/github-copilot-integration

Conversation

@tristantelleb

@tristantelleb tristantelleb commented Jun 19, 2026

Copy link
Copy Markdown
Member

What

Adds an integration guide for using Eden AI as the model provider for GitHub Copilot via Copilot's Bring Your Own Key (BYOK) support.

Paths covered:

  • VS Code Copilot Chat — the "Custom Endpoint" provider + chatLanguageModels.json
  • Copilot CLICOPILOT_PROVIDER_* environment variables
  • Enterprise — org-wide OpenAI-compatible BYOK

Notes

  • Endpoint + model format verified live against https://api.edenai.run/v3/chat/completions (provider/model, bearer auth).
  • Documents the key limitation: inline completions, semantic search, and embeddings stay on GitHub's infrastructure — BYOK is chat / agent / CLI only.
  • Follows the current main template (TechArticleSchema snippet import); registered in the Coding Agents nav group.
  • ⚠️ Icon is a placeholder (Font Awesome github) — swap in a brand SVG at /integration-logo/github-copilot-icondoc.svg when available.

Sources: VS Code BYOK docs, GitHub Copilot CLI BYOK docs.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Added comprehensive GitHub Copilot integration guide with setup instructions for VS Code and CLI, including prerequisites, detailed configuration steps for custom endpoint setup and model selection, feature coverage details, troubleshooting guidance for common issues, and links to related resources.

Guide for using Eden AI as the model provider for GitHub Copilot via its
Bring Your Own Key (BYOK) support: VS Code Custom Endpoint, the Copilot CLI
environment variables, and org-wide Enterprise BYOK. Calls out that inline
completions / semantic search stay on GitHub's infrastructure. Registered in
the Coding Agents nav group.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mintlify

mintlify Bot commented Jun 19, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
edenai 🟢 Ready View Preview Jun 19, 2026, 11:55 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@coderabbitai

coderabbitai Bot commented Jun 19, 2026

Copy link
Copy Markdown

Review Change Stack

Walkthrough

A new MDX documentation page (v3/integrations/github-copilot.mdx) is added, describing how to configure GitHub Copilot BYOK to route Copilot Chat, agent mode, and the Copilot CLI through Eden AI. The page is registered in the "Coding Agents" navigation group in docs.json.

Changes

GitHub Copilot BYOK Integration Documentation

Layer / File(s) Summary
Navigation registration
docs.json
Inserts v3/integrations/github-copilot into the "Coding Agents" group's pages array.
Page metadata, schema, and setup overview
v3/integrations/github-copilot.mdx
Defines frontmatter (title, icon, description), TechArticleSchema component configuration, BYOK overview text, a warning scoping feature coverage, and the prerequisites list.
VS Code and CLI BYOK configuration steps
v3/integrations/github-copilot.mdx
Step-by-step VS Code setup for adding Eden AI as a custom endpoint and defining model entries in chatLanguageModels.json; Copilot CLI configuration via environment variables (COPILOT_PROVIDER, COPILOT_BASE_URL, COPILOT_API_KEY, COPILOT_MODEL).
Enterprise config, model discovery, feature coverage, and troubleshooting
v3/integrations/github-copilot.mdx
Enterprise-wide admin setup, model switching examples, catalog/listing endpoint guidance, a feature coverage table (Eden AI vs. GitHub-hosted), troubleshooting sections for auth errors/model ID formatting/missing VS Code models/connection issues, and "Next Steps" links.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • edenai/docs#55: Restructures the V3 "Coding Agents" navigation group in docs.json by removing and adding integration routes — the same array this PR appends v3/integrations/github-copilot to.

Poem

🐇 A new page hops into the docs today,
With Copilot and Eden AI leading the way,
Set your base URL, pick a model with care,
The CLI and VS Code know just what to share,
No inline completions? The warning is clear —
Just chat with your agent and keep hacking, dear! 🌿

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title directly and accurately summarizes the main change: adding a GitHub Copilot integration documentation page to the codebase.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/github-copilot-integration

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 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/github-copilot.mdx`:
- Around line 101-102: Replace the custom placeholder `YOUR_EDEN_AI_API_KEY` in
the environment variable export statements with the guideline-compliant token
placeholders: use `api_token` for production examples and `sandbox_api_token`
for testing examples. Additionally, ensure any curl examples that include
authentication headers use the exact format `Authorization: Bearer <api_key>` as
per the documentation guidelines. Apply these changes consistently across all
occurrences at lines 101-102, 108-109, and 157.
- Line 164: The documentation at line 164 references the models catalog endpoint
using a relative path format `GET /v3/models`. Update this reference to use the
full absolute URL format `https://api.edenai.run/v3/models` to maintain
consistency with v3 endpoint documentation guidelines. This applies to all
references to the models endpoint in the github-copilot.mdx file.
🪄 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: 10bdec2a-3649-4021-979c-2f217cc3d458

📥 Commits

Reviewing files that changed from the base of the PR and between 393af7f and 0238eb4.

📒 Files selected for processing (2)
  • docs.json
  • v3/integrations/github-copilot.mdx

Comment on lines +101 to +102
export COPILOT_PROVIDER_API_KEY="YOUR_EDEN_AI_API_KEY"
export COPILOT_MODEL="anthropic/claude-sonnet-4-5"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Use guideline-compliant token/header placeholders in code examples.

Replace YOUR_EDEN_AI_API_KEY with the prescribed token placeholders (api_token for production, sandbox_api_token for testing) and use the exact auth header placeholder format Authorization: Bearer <api_key> in the curl example.

Suggested doc patch
-export COPILOT_PROVIDER_API_KEY="YOUR_EDEN_AI_API_KEY"
+export COPILOT_PROVIDER_API_KEY="api_token"
@@
-$env:COPILOT_PROVIDER_API_KEY = "YOUR_EDEN_AI_API_KEY"
+$env:COPILOT_PROVIDER_API_KEY = "api_token"
@@
-  -H "Authorization: Bearer YOUR_EDEN_AI_API_KEY" \
+  -H "Authorization: Bearer <api_key>" \

As per coding guidelines, “Use Authorization: Bearer <api_key> header format” and “Distinguish token types in code examples: api_token for production and sandbox_api_token for testing.”

Also applies to: 108-109, 157-157

🤖 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/github-copilot.mdx` around lines 101 - 102, Replace the
custom placeholder `YOUR_EDEN_AI_API_KEY` in the environment variable export
statements with the guideline-compliant token placeholders: use `api_token` for
production examples and `sandbox_api_token` for testing examples. Additionally,
ensure any curl examples that include authentication headers use the exact
format `Authorization: Bearer <api_key>` as per the documentation guidelines.
Apply these changes consistently across all occurrences at lines 101-102,
108-109, and 157.

Source: Coding guidelines


### Model not found

Use the full `provider/model` string (e.g. `anthropic/claude-sonnet-4-5`, not `claude-sonnet-4-5`). Confirm the ID is in the catalog returned by `GET /v3/models`.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Use the full v3 endpoint format in the model-catalog reference.

GET /v3/models should be documented in the required absolute format (https://api.edenai.run/v3/...) to stay consistent with v3 endpoint guidance.

Suggested doc patch
-Use the full `provider/model` string (e.g. `anthropic/claude-sonnet-4-5`, not `claude-sonnet-4-5`). Confirm the ID is in the catalog returned by `GET /v3/models`.
+Use the full `provider/model` string (e.g. `anthropic/claude-sonnet-4-5`, not `claude-sonnet-4-5`). Confirm the ID is in the catalog returned by `GET https://api.edenai.run/v3/models`.

As per coding guidelines, “Use API endpoint format https://api.edenai.run/v3/... for LLM endpoints.”

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
Use the full `provider/model` string (e.g. `anthropic/claude-sonnet-4-5`, not `claude-sonnet-4-5`). Confirm the ID is in the catalog returned by `GET /v3/models`.
Use the full `provider/model` string (e.g. `anthropic/claude-sonnet-4-5`, not `claude-sonnet-4-5`). Confirm the ID is in the catalog returned by `GET https://api.edenai.run/v3/models`.
🤖 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/github-copilot.mdx` at line 164, The documentation at line
164 references the models catalog endpoint using a relative path format `GET
/v3/models`. Update this reference to use the full absolute URL format
`https://api.edenai.run/v3/models` to maintain consistency with v3 endpoint
documentation guidelines. This applies to all references to the models endpoint
in the github-copilot.mdx file.

Source: Coding guidelines

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