Documentation
Predicting with LLMs
Agentic Flows
Text Embedding
Tokenization
Model Info
API Reference
Predicting with LLMs
Agentic Flows
Text Embedding
Tokenization
Model Info
API Reference
Get Model Info
You can access information about a loaded model using the getInfo
method.
import { LMStudioClient } from "@lmstudio/sdk";
const client = new LMStudioClient();
const model = await client.llm.model();
const modelInfo = await model.getInfo();
console.info("Model Key", modelInfo.modelKey);
console.info("Current Context Length", model.contextLength);
console.info("Model Trained for Tool Use", modelInfo.trainedForToolUse);
// etc.