Skip to content

docs(samples): demonstrate recipe-based model selection across clouds - #771

Draft
defangdevs wants to merge 1 commit into
mainfrom
codex/recipe-model-defaults
Draft

defangdevs wants to merge 1 commit into
mainfrom
codex/recipe-model-defaults

Conversation

@defangdevs

@defangdevs defangdevs commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Show how the Mastra Extended sample keeps chat-default / embedding-default portable while a custom recipe selects models on AWS, GCP, Azure, or Scaleway. Add four recipe fragments, exact Azure embedding revision and versionless chat examples, and .env model selection with existing aliases as defaults. Correct the obsolete provider.options.model instructions and workspace-only link.

Part of DefangLabs/defang-global#234. Depends on the CLI/provider implementations linked there; keep draft until those compatible releases are available.

Validation

  • The literal Compose file loads with the deployment preflight tool's pinned compose-go v2.7.1: four services, two models. No loader dependency bump needed.
  • Compiled Defang CLI compose config against the sample: default selectors remain chat-default / embedding-default; a local .env selects qwen3-235b-a22b-instruct literally.
  • All four recipe YAML files parse, and new README file links resolve to real files.
  • Script tests: 22 passed.
  • Copywriting, copy-editing and independent humanizer review completed.
  • Live inference and end-to-end model persistence await the coordinated provider implementation; no cloud deployment was performed by this sample PR.

Copy review

  • Changed user-facing copy reviewed with humanizer
  • No user-facing copy changes

Samples Checklist

✅ All good!

@defangdevs
defangdevs temporarily deployed to deploy-changed-samples October 30, 2026 21:49 — with GitHub Actions Inactive
@coderabbitai

coderabbitai Bot commented Oct 30, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

This branch was previously deployed

1 inactive deployment
deploy-changed-samples — 95e394ea Deployed Oct 30, 2026 by defangdevs via deploy_changed_samples #892
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