Skip to content

Commit ae85bd8

Browse files
committed
doc: enable verbose logging in the quickstart example
Signed-off-by: Arun Mani J <j.arunmani@proton.me>
1 parent ddaa70c commit ae85bd8

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

packages/sdk/examples/quickstart.ts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
import {
2-
loadModel,
3-
LLAMA_3_2_1B_INST_Q4_0,
4-
completion,
5-
unloadModel,
6-
} from "@qvac/sdk";
1+
// The SDK is silent by default. Pointing QVAC_CONFIG_PATH at a config with
2+
// `loggerConsoleOutput: true` prints the SDK's client and server logs to the
3+
// console. Drop this line (or set the flag to false) to run quietly.
4+
const configDir = import.meta.dirname ?? process.cwd();
5+
process.env["QVAC_CONFIG_PATH"] =
6+
`${configDir}/config/default/default.config.json`;
7+
8+
const { loadModel, LLAMA_3_2_1B_INST_Q4_0, completion, unloadModel } =
9+
await import("@qvac/sdk");
710

811
try {
912
// Load a model into memory

0 commit comments

Comments
 (0)