Getting started
AiBrow extension using llama.cpp natively
import AI from '@aibrow/web'
const { ready, extension, helper } = await AI.AIBrow.capabilities()
if (ready) {
const session = await AI.AIBrow.LanguageModel.create()
console.log(await session.prompt('Write a short poem about the weather'))
} else {
// Here are some tips to help users install the AiBrow extension & helper https://docs.aibrow.ai/guides/helping-users-install-aibrow
console.log(`Extension is not fully installed. Extension=${extension}. Helper=${helper}`)
}AiBrow on WebGPU
import AI from '@aibrow/web'
const session = await AI.AIBrowWeb.LanguageModel.create()
console.log(await session.prompt('Write a short poem about the weather'))Chrome built-in AI
Last updated