Skip to content

Commit 936889c

Browse files
committed
links for built_in ai
SQUASHED: AUTO-COMMIT-demos-stefan-chrome-built-in-ai.md,
1 parent 77ec75d commit 936889c

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

demos/stefan/chrome-built-in-ai.md

+33-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Chrome Built-in AI API
22

3+
https://googlechromeai.devpost.com/?linkId=11071015
4+
5+
Sign up for Built-in AI - Early Preview Program:
6+
https://docs.google.com/forms/d/e/1FAIpQLSfZXeiwj9KO9jMctffHPym88ln12xNWCrVkMY_u06WfSTulQg/viewform
7+
8+
https://developer.chrome.com/docs/ai/built-in
9+
10+
- Available APIs: https://developer.chrome.com/docs/ai/built-in-apis#translator_api
11+
312
<script>
413
import {} from './chrome-built-in-ai.js';
514
'built-in API loaded'
@@ -11,6 +20,11 @@
1120

1221
## Summarizer
1322

23+
- Summarization API
24+
https://docs.google.com/document/d/1Bvd6cU9VIEb7kHTAOCtmmHNAYlIZdeNmV7Oy-2CtimA/edit?tab=t.0
25+
26+
- Origin Trial: https://developer.chrome.com/origintrials/#/view_trial/1923599990840623105
27+
1428
```javascript {.summarize .snippet}
1529
const input = `Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.
1630
@@ -36,6 +50,8 @@ enum AISummarizerLength { "short", "medium", "long" };
3650

3751
## Language Detection
3852

53+
https://developer.chrome.com/docs/ai/language-detection#use-api
54+
3955
```javascript {.detectScript .snippet}
4056
const detector = await window.ai.languageDetector.create();
4157
const results = await detector.detect('hello world');
@@ -74,6 +90,15 @@ detector
7490

7591
## Translation
7692

93+
Explainer: https://github.com/WICG/translation-api/blob/main/README.md
94+
95+
https://chromestatus.com/feature/5172811302961152
96+
97+
Origin Trial: https://developer.chrome.com/origintrials/#/view_trial/662592095176884225
98+
99+
Lang Detector API
100+
https://chromestatus.com/feature/6494349985841152?gate=6503542490923008
101+
77102
```javascript {.canDetectScript .snippet}
78103
if ('translation' in self && 'canDetect' in self.translation) {
79104
// The Language Detector API is available.
@@ -86,7 +111,10 @@ canDetect
86111
autoRunSnippet(this, ".canDetectScript")
87112
</script>
88113

89-
## LLM
114+
## Prompt LLM
115+
116+
- [Prompt API](https://docs.google.com/document/d/1VG8HIyz361zGduWgNG7R_R8Xkv0OOJ8b5C9QKeCjU0c/edit?tab=t.0)
117+
- [Explainer](https://github.com/explainers-by-googlers/prompt-api/?tab=readme-ov-file)
90118

91119
```javascript {.llm-simple .snippet}
92120

@@ -120,6 +148,10 @@ clonedSession.prompt("Write a shorter one");
120148
autoRunSnippet(this, ".llm")
121149
</script>
122150

151+
## Writing Assistance
152+
153+
https://github.com/WICG/writing-assistance-apis
154+
123155
## Misc.
124156

125157
```javascript {.userAgentScript .snippet}

0 commit comments

Comments
 (0)