Skip to content

docs: add TokenLab base URL example for model router#1377

Open
hedging8563 wants to merge 1 commit into
VoltAgent:mainfrom
hedging8563:codex/add-tokenlab-openai-compatible-docs
Open

docs: add TokenLab base URL example for model router#1377
hedging8563 wants to merge 1 commit into
VoltAgent:mainfrom
hedging8563:codex/add-tokenlab-openai-compatible-docs

Conversation

@hedging8563

@hedging8563 hedging8563 commented Jul 8, 2026

Copy link
Copy Markdown

Summary

  • Add TokenLab as an OpenAI-compatible base URL example for registry-defined provider env vars.
  • Keep the change docs-only and scoped to the project's existing OpenAI-compatible configuration surface.

Validation

  • git diff --check

Summary by cubic

Adds a TokenLab OpenAI-compatible example to the model router docs, showing how to set TOKENLAB_API_KEY and TOKENLAB_BASE_URL for registry-defined providers. This clarifies how to configure TokenLab with the router without code changes.

Written for commit 52caa1f. Summary will update on new commits.

Review in cubic

Summary by CodeRabbit

  • Documentation
    • Clarified environment variable configuration for registry entries.
    • Added an example showing how to set custom API key and base URL variables for an OpenAI-compatible provider.

@changeset-bot

changeset-bot Bot commented Jul 8, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 52caa1f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai

coderabbitai Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: c3022a94-a11a-4111-9f68-23b0642ce51e

📥 Commits

Reviewing files that changed from the base of the PR and between c21aa3e and 52caa1f.

📒 Files selected for processing (1)
  • website/docs/getting-started/model-router.md

📝 Walkthrough

Walkthrough

Documentation update to model-router.md adding explanation and an example showing that registry entries can define custom environment variable names for API keys and base URLs, illustrated with a TokenLab configuration.

Changes

Documentation update

Layer / File(s) Summary
Environment variables documentation
website/docs/getting-started/model-router.md
Documents that registry entries can specify custom API key and base URL environment variable names, with a TokenLab example (TOKENLAB_API_KEY, TOKENLAB_BASE_URL).

Estimated code review effort: 1 (Trivial) | ~2 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description omits most required template sections, including checklist items, current/new behavior, linked issue, and reviewer notes. Add the missing PR template sections: checklist, bugs/features details, current/new behavior, linked issue, and reviewer notes.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and accurately describes the docs-only TokenLab base URL example change.
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.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 1 file

Re-trigger cubic

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