Skip to content

feat(ai-cookbooks): Add model-based routing cookbook#5515

Open
tomek-labuk wants to merge 12 commits into
mainfrom
feat/model-based-routing-cookbook
Open

feat(ai-cookbooks): Add model-based routing cookbook#5515
tomek-labuk wants to merge 12 commits into
mainfrom
feat/model-based-routing-cookbook

Conversation

@tomek-labuk

@tomek-labuk tomek-labuk commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

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/

Add cookbook guide for semantic load balancing and intelligent routing
using AI Gateway Models.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 10, 2026 06:22
@tomek-labuk tomek-labuk requested a review from a team as a code owner June 10, 2026 06:22
@netlify

netlify Bot commented Jun 10, 2026

Copy link
Copy Markdown

Deploy Preview for kongdeveloper ready!

Name Link
🔨 Latest commit d0adf29
🔍 Latest deploy log https://app.netlify.com/projects/kongdeveloper/deploys/6a2918bba56f750008f83a2a
😎 Deploy Preview https://deploy-preview-5515--kongdeveloper.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@tomek-labuk tomek-labuk changed the title Add model-based routing cookbook feat(ai-cookbooks): Add model-based routing cookbook Jun 10, 2026

Copilot AI 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.

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.

Comment thread app/_cookbooks/model-based-routing.md Outdated
Comment thread app/_cookbooks/model-based-routing.md Outdated
Comment thread app/_cookbooks/model-based-routing.md
Comment thread app/_cookbooks/model-based-routing.md Outdated
Comment thread app/_cookbooks/model-based-routing.md Outdated
Comment thread app/_cookbooks/model-based-routing.md Outdated
Comment thread app/_cookbooks/model-based-routing.md Outdated
Comment thread app/_cookbooks/model-based-routing.md
Comment thread app/_cookbooks/model-based-routing.md
Comment thread app/_cookbooks/model-based-routing.md
tomek-labuk and others added 11 commits June 10, 2026 08:58
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>
Comment thread app/_cookbooks/model-based-routing.md
Comment thread app/_cookbooks/model-based-routing.md
```
{: data-test-step="block" .collapsible }

The `multi-provider.yaml` file contents:

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.

Should this step come before the deck gateway sync command?

name: ${{ env "DECK_OPENAI_SELECTOR_SLM" }}
```
{% endraw -%}
{:.no-copy-code}

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.

Why shouldn't we copy this? And should it be collapsible?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think that this is Claude skill's mistake, we'll fix it

Comment thread app/_cookbooks/model-based-routing.md
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.

3 participants