Optional
sessionCall .destroy()
to free resources if you no longer need a session.
When a session is destroyed, it can no longer be used, and any ongoing
execution will be aborted. You may want to keep the session around if
you intend to prompt the model often since creating a session can take
some time.
Generated using TypeDoc
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:Link
https://developer.chrome.com/docs/ai/built-in
Example