chore: add SDK section in the how to use dialog
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user