import{c as a,Q as e,j as i,m as s}from"./chunks/framework.BPKcPtvA.js";const u=JSON.parse('{"title":"L6b: Cost Optimization","description":"","frontmatter":{},"headers":[],"relativePath":"labs/l6-cost-optimization.md","filePath":"labs/l6-cost-optimization.md","lastUpdated":1780488246000}'),o={name:"labs/l6-cost-optimization.md"};function n(l,t,r,p,c,h){return e(),i("div",null,[...t[0]||(t[0]=[s(`<h1 id="l6b-cost-optimization" tabindex="-1">L6b: Cost Optimization <a class="header-anchor" href="#l6b-cost-optimization" aria-label="Permalink to &quot;L6b: Cost Optimization&quot;">​</a></h1><p><strong>Module</strong>: M6 Economics<br><strong>Files</strong>: starter.py, solution.py</p><h2 id="objective" tabindex="-1">Objective <a class="header-anchor" href="#objective" aria-label="Permalink to &quot;Objective&quot;">​</a></h2><p>Profile a session, find savings, implement cascade routing.</p><h2 id="concepts" tabindex="-1">Concepts <a class="header-anchor" href="#concepts" aria-label="Permalink to &quot;Concepts&quot;">​</a></h2><p>Refer to the corresponding module for full concept explanations.</p><h2 id="starter" tabindex="-1">Starter <a class="header-anchor" href="#starter" aria-label="Permalink to &quot;Starter&quot;">​</a></h2><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">cd</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> course/labs/l6-cost-optimization/</span></span>
<span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"># Open starter file and fill in the TODOs</span></span></code></pre></div><h2 id="checkpoints" tabindex="-1">Checkpoints <a class="header-anchor" href="#checkpoints" aria-label="Permalink to &quot;Checkpoints&quot;">​</a></h2><ol><li>Define model cost profiles (input/output $/M tokens)</li><li>Calculate all-Opus session cost</li><li>Implement cascade routing map (Flash/Sonnet/Opus by task)</li><li>Calculate savings percentage</li></ol><h2 id="solution" tabindex="-1">Solution <a class="header-anchor" href="#solution" aria-label="Permalink to &quot;Solution&quot;">​</a></h2><p>Compare against the solution file after attempting the starter.</p>`,12)])])}const m=a(o,[["render",n]]);export{u as __pageData,m as default};
