chore: add SDK section in the how to use dialog

This commit is contained in:
vimtor
2026-07-07 11:49:29 +02:00
parent e6ebd8d9a5
commit fa0722d987
2 changed files with 16 additions and 4 deletions
-1
View File
@@ -759,7 +759,6 @@ dialog .body .code-block {
margin-bottom: 0.625rem;
}
dialog .body h2,
dialog .body p:has(+ h2),
dialog .body .code-block:has(+ h2) {
margin-bottom: 1.5rem;
+16 -3
View File
@@ -1528,15 +1528,28 @@ function HelpDialog() {
</a>
</code>
</div>
<h2>SDK</h2>
<p>
Use the SDK to query the API from your app. It's type-safe and
exports the latest snapshot for offline use.
</p>
<div class="code-block">
<code>
npm install{" "}
<a href="https://www.npmjs.com/package/@opencode-ai/models">
@opencode-ai/models
</a>
</code>
</div>
<h2>Contribute</h2>
<p>
The data is stored in the{" "}
The data is stored in{" "}
<a
href="https://github.com/sst/models.dev"
href="https://github.com/anomalyco/models.dev"
target="_blank"
rel="noopener noreferrer"
>
GitHub repo
GitHub
</a>{" "}
as TOML files organized by provider and canonical model.
</p>