feat(ai-cookbooks): Add model-based routing cookbook#5515
Open
tomek-labuk wants to merge 12 commits into
Open
Conversation
Add cookbook guide for semantic load balancing and intelligent routing using AI Gateway Models. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
✅ Deploy Preview for kongdeveloper ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new AI Gateway cookbook that demonstrates model-based (tier) routing across OpenAI and AWS Bedrock by using a “model selector” Route plus Datakit orchestration on the main chat Route.
Changes:
- Introduces a new cookbook page at
/cookbooks/model-based-routing/covering architecture, plugin roles, and sample decK configuration. - Includes an end-to-end “Try it out” section with curl-based validation and a cleanup step.
- Provides inline decK YAML for multi-provider AI Proxy Advanced targets and a Datakit workflow that calls the selector route.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
lmilan
reviewed
Jun 10, 2026
| ``` | ||
| {: data-test-step="block" .collapsible } | ||
|
|
||
| The `multi-provider.yaml` file contents: |
Contributor
There was a problem hiding this comment.
Should this step come before the deck gateway sync command?
| name: ${{ env "DECK_OPENAI_SELECTOR_SLM" }} | ||
| ``` | ||
| {% endraw -%} | ||
| {:.no-copy-code} |
Contributor
There was a problem hiding this comment.
Why shouldn't we copy this? And should it be collapsible?
Contributor
Author
There was a problem hiding this comment.
I think that this is Claude skill's mistake, we'll fix 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.
Summary
Add cookbook guide for semantic load balancing and intelligent routing using AI Gateway Models.
https://deploy-preview-5515--kongdeveloper.netlify.app/cookbooks/model-based-routing/