QVAC-18711 New content covering request lifecycle#2043
Conversation
Preview deployments for qvac-docs-staging ⚡️
Commit: Deployment ID: Static site name: |
Tier-based Approval Status |
|
Hey @BrunoCampana — thanks for getting this page in front of M3d. A few corrections needed because some of it predates the breaking-change wire-shape work that #2074 landed (the reason M3d is 1. Stale wire shape in the "Other cancellable operations" callout- Downloads: `cancel({ operation: "downloadAsset", downloadKey })` — see [Download lifecycle](/models/download-lifecycle).The const op = downloadAsset({ assetSrc: "..." });
await cancel({ requestId: op.requestId, clearCache: true });2. The callout under-sells what's cancellable in 0.11.0The callout currently says
Suggested rewrite:
3. Broad-cancel section should show the new canonical shapeCurrently only shows the legacy sugar: await cancel({ operation: "inference", modelId });
await cancel({ operation: "embeddings", modelId });These are kept as client-side aliases for source compat, but the canonical 0.11.0+ shape is // Generic broad-cancel — preferred shape in 0.11.0+.
await cancel({ modelId }); // every in-flight request on this model
await cancel({ modelId, kind: "completion" }); // narrow to completions
await cancel({ modelId, kind: "embeddings" }); // narrow to embeddings
// Legacy per-kind sugars — still supported via the client wrapper.
await cancel({ operation: "inference", modelId });
await cancel({ operation: "embeddings", modelId });4. Errors section is missing two typed errorsM3d wired two more server-thrown classes through the typed-error RPC reconstructor — both are re-exported from
5. Cross-referenced page is stale (not in this PR, but worth flagging)
These two pages aren't in the scope you scoped this PR to, but they need to land in lockstep with 0.11.0 for the docs story to be coherent. Happy to follow up with a separate PR for those if you'd rather keep this one tight. Want me to push these fixes onto your branch as a single suggested-change commit, or would you prefer to fold them in yourself? |
|
/review |
* doc: add coverage to cancellation operation * doc: SDK operations lifecycle - new page - cancellation * doc PR review - update
Objective
Scope
Create a new "Cancellation" page.