import { RaijinLabsLucidAiCore } from "raijin-labs-lucid-ai/core.js";
import { passportsCreate } from "raijin-labs-lucid-ai/funcs/passportsCreate.js";
// Use `RaijinLabsLucidAiCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const raijinLabsLucidAi = new RaijinLabsLucidAiCore();
async function run() {
const res = await passportsCreate(raijinLabsLucidAi, {
type: "model",
owner: "7xK9mQ2vNbPfYkRd3JhEzV1LnWqA8tUcGp4SyDfH5Bo",
metadata: {
"schema_version": "1.0",
"model_passport_id": "ppt_model_7xK9mQ2v",
"format": "safetensors",
"runtime_recommended": "vllm",
"context_length": 32768,
"hf": {
"repo_id": "mistralai/Mistral-7B-Instruct-v0.3",
},
},
name: "mistral-7b-instruct",
description: "Mistral 7B Instruct fine-tuned for chat",
version: "1.0.0",
tags: [
"llm",
"chat",
"instruct",
],
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("passportsCreate failed:", res.error);
}
}
run();