janhq / models

Models support in Jan and Cortex
MIT License
6 stars 2 forks source link

chore: update README.md #5

Closed louis-jan closed 1 year ago

louis-jan commented 1 year ago

@janhq/models

Install

Using yarn:

yarn add @janhq/models

Using npm

npm i @janhq/models

Import the package

// javascript
const models = require("@janhq/models");

// typescript
import * as models from "@janhq/models";
const MODEL_CATALOG_URL = models.default;

console.log(MODEL_CATALOG_URL);
// {
//   "id": "",
//   "name": "",
//   "modelUrl": "",
//   "versions": [
//      "downloadLink": "",
//     ...
//   ]
//   ...
// }