GPT Model Management
Gets the current GPT model being used for AI interactions. This function can retrieve either the global model setting or the model configured for a specific VRM character.
Parameters
options
: Optional configuration to scope the query to a specific VRM
Options
interface Options {
vrm?: number; // VRM entity ID to get model for specific character
}
Returns
A promise that resolves to the current model name as a string.
Examples
Basic Usage
// Get the global model setting
const currentModel = await gpt.model();
console.log("Current global model:", currentModel);
// Output: "gpt-4"
// Get model for a specific VRM character
const vrm = await Vrm.findByName("Assistant");
const vrmModel = await gpt.model({vrm: vrm.entity});
console.log("VRM model:", vrmModel);
Related Functions
gpt.availableModels()
- Get list of available modelsgpt.saveModel()
- Change the active modelgpt.chat()
- Use the current model for conversations