3 ms·
Huh, looking at the code, it's simpler than I thought, basically these are the 2 lines that enable the request-response functionality: const session = await
by samspenc 2y ago
Huh, looking at the code, it's simpler than I thought, basically these are the 2 lines that enable the request-response functionality:
const session = await window.ai.createTextSession();
const response = await session.prompt(prompt);
- notnotrishi 2y agoexactly! also, one can set parameters etc. if they'd like. also, after this post, i was able to do some tinkering and run it outside chrome, which i think would be more useful. hope they release the weights and make it open
- DownrightNifty 2y agoYou should share this with us! If you have a blog, that'd be a really interesting post.