class ChromeAISerializable// Initialize the ChromeAI model.
const model = new ChromeAI({
temperature: 0.5, // Optional. Default is 0.5.
topK: 40, // Optional. Default is 40.
});
// Call the model with a message and await the response.
const response = await model.invoke([
new HumanMessage({ content: "My name is John." }),
]);To use this model you need to have the Built-in AI Early Preview Program
for Chrome. You can find more information about the program here: