Joe Muller • over 1 year ago
Built-In AI for TypeScript
Are there any examples projects showing how to use the built-in AI APIs in a TypeScript project? I'm not entirely sure what the inputs and outputs to the models can look like (beyond the basics). Thanks!
Comments are closed.

2 comments
Shuao Cui • over 1 year ago
Hi Joe, have you figured it out? I have the same question as the Built-in API is not exactly like the Gemini API's type. Thank you!
Connie Leung • over 1 year ago
I am using it in my submission. Download the type definitions from here: https://www.npmjs.com/package/@types/dom-chromium-ai.
Then, add the reference path in your project to access the API methods.