Skip to content

perf(integrate): run the embedded agent on Haiku 4.5, raise per-run budget to $10 - #10

Merged
itelo merged 1 commit into
mainfrom
itelo/cheap-model-budget-10
Aug 11, 2026
Merged

perf(integrate): run the embedded agent on Haiku 4.5, raise per-run budget to $10#10
itelo merged 1 commit into
mainfrom
itelo/cheap-model-budget-10

Conversation

@itelo

@itelo itelo commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Summary

A full Customer Portal integration hit the Seam-hosted inference budget mid-run (429 inference_budget_exhausted, limit_usd: 5).

Changes to the embedded integration agent in src/lib/steps/integrate.ts:

  • Model is now chosen per mode (modelForMode): the customer-portal path — a small, high-value surface (embedded portal + reservation deep-links) — runs on claude-opus-4-8; the broader full-API path runs on cheap claude-haiku-4-5. Defaults to Haiku when the mode is unknown. mode is already passed into runIntegration.
  • maxBudgetUsd 5 → 10 — headroom for a multi-flow integration.

Pairs with seamapi/seam-connect#17059, which raises the proxy's per-workspace monthly cap to $10 and makes the cost meter a per-model price map so each path is priced by the model that actually ran.

Testing

  • tsc typecheck clean
  • Re-run the wizard on each mode; confirm customer_portal runs Opus, full_api runs Haiku

Security & Compliance

  • No security impact

@itelo
itelo requested a review from razor-x as a code owner August 11, 2026 18:43
…aiku), budget $10

The embedded integration agent ran on one model with a $5 per-run cap; a full
Customer Portal integration exhausted the Seam-hosted inference budget mid-run.
Pick the model by the chosen mode instead: the customer-portal path is a small,
high-value surface (embedded portal, reservation deep-links) and runs on Opus
4.8; the broader full-API path runs on cheap Haiku 4.5. Raise maxBudgetUsd to $10.

Pairs with seamapi/seam-connect#17059 (proxy monthly cap -> $10; meter is a
per-model price map so each path is priced by the model that actually ran).
@itelo
itelo force-pushed the itelo/cheap-model-budget-10 branch from 20850fa to 3d069d4 Compare August 11, 2026 19:11
@itelo
itelo merged commit a8960bb into main Aug 11, 2026
11 checks passed
@itelo
itelo deleted the itelo/cheap-model-budget-10 branch August 11, 2026 19:16
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