Skip to content

Commit 293e74d

Browse files
Docs
1 parent af8eec4 commit 293e74d

File tree

6 files changed

+15
-14
lines changed

6 files changed

+15
-14
lines changed

built-in-ai/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
The files in this directory are playgrounds for the built-in AI APIs in Microsoft Edge.
66

7-
To learn more, see [Prompt a built-in language model with the Prompt API](https://aka.ms/edge-prompt-api-docs) and [Summarize, write, and rewrite text with the Writing Assistance APIs](https://aka.ms/edge-writing-assistance-api-docs).
7+
To learn more, see [Prompt a built-in language model with the Prompt API](https://learn.microsoft.com/microsoft-edge/web-platform/prompt-api) and [Summarize, write, and rewrite text with the Writing Assistance APIs](https://learn.microsoft.com/microsoft-edge/web-platform/writing-assistance-apis).

built-in-ai/playgrounds/prompt-api/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ <h2 class="app-title">Built-in AI Playground</h2>
106106

107107
<main>
108108
<h1>Prompt API</h1>
109-
<p class="description">Web API to prompt the browser-provided language model. For more information, check out <a href="https://aka.ms/edge-prompt-api-docs" target="_blank">the API documentation</a>.</p>
109+
<p class="description">Web API to prompt the browser-provided language model. For more information, check out <a href="https://learn.microsoft.com/microsoft-edge/web-platform/prompt-api" target="_blank">the API documentation</a>.</p>
110110

111111
<div id="message-ui" class="message-bar"></div>
112112

built-in-ai/playgrounds/rewriter-api/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ <h2 class="app-title">Built-in AI Playground</h2>
106106

107107
<main>
108108
<h1>Rewriter API</h1>
109-
<p class="description">Web API to modify text in different tones, lengths, etc. using the browser-provided language model. For more information, check out <a href="https://aka.ms/edge-writing-assistance-api-docs" target="_blank">the API documentation</a>.</p>
109+
<p class="description">Web API to modify text in different tones, lengths, etc. using the browser-provided language model. For more information, check out <a href="https://learn.microsoft.com/microsoft-edge/web-platform/writing-assistance-apis" target="_blank">the API documentation</a>.</p>
110110

111111
<div id="message-ui" class="message-bar"></div>
112112

built-in-ai/playgrounds/summarizer-api/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ <h2 class="app-title">Built-in AI Playground</h2>
106106

107107
<main>
108108
<h1>Summarizer API</h1>
109-
<p class="description">Web API to summarize text in different styles, lengths, etc. using the browser-provided language model. For more information, check out <a href="https://aka.ms/edge-writing-assistance-api-docs" target="_blank">the API documentation</a>.</p>
109+
<p class="description">Web API to summarize text in different styles, lengths, etc. using the browser-provided language model. For more information, check out <a href="https://learn.microsoft.com/microsoft-edge/web-platform/writing-assistance-apis" target="_blank">the API documentation</a>.</p>
110110

111111
<div id="message-ui" class="message-bar"></div>
112112

built-in-ai/playgrounds/writer-api/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ <h2 class="app-title">Built-in AI Playground</h2>
106106

107107
<main>
108108
<h1>Writer API</h1>
109-
<p class="description">Web API to generate text from a description in different tones, lengths, etc. using the browser-provided language model. For more information, check out <a href="https://aka.ms/edge-writing-assistance-api-docs" target="_blank">the API documentation</a>.</p>
109+
<p class="description">Web API to generate text from a description in different tones, lengths, etc. using the browser-provided language model. For more information, check out <a href="https://learn.microsoft.com/microsoft-edge/web-platform/writing-assistance-apis" target="_blank">the API documentation</a>.</p>
110110

111111
<div id="message-ui" class="message-bar"></div>
112112

built-in-ai/static/session.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
// The various error messages.
2-
const DOCS_INSTRUCTIONS = "Please check the <a href='https://aka.ms/edge-prompt-api-docs'>documentation</a> and try again.";
2+
const PROMPT_DOCS_INSTRUCTIONS = "Please check the <a href='https://learn.microsoft.com/microsoft-edge/web-platform/prompt-api'>documentation</a> and try again.";
3+
const WA_DOCS_INSTRUCTIONS = "Please check the <a href='https://learn.microsoft.com/microsoft-edge/web-platform/writing-assistance-apis'>documentation</a> and try again.";
34

4-
const ERR_LANGUAGEMODEL_API_NOT_DETECTED = `The LanguageModel API is not available. ${DOCS_INSTRUCTIONS}`;
5-
const ERR_LANGUAGEMODEL_MODEL_NOT_AVAILABLE = `The LanguageModel API is enabled, but the model download hasn't started yet, maybe awaiting device capability check. ${DOCS_INSTRUCTIONS}`;
5+
const ERR_LANGUAGEMODEL_API_NOT_DETECTED = `The LanguageModel API is not available. ${PROMPT_DOCS_INSTRUCTIONS}`;
6+
const ERR_LANGUAGEMODEL_MODEL_NOT_AVAILABLE = `The LanguageModel API is enabled, but the model download hasn't started yet, maybe awaiting device capability check. ${PROMPT_DOCS_INSTRUCTIONS}`;
67

7-
const ERR_SUMMARIZER_API_NOT_DETECTED = `The Summarizer API is not available. ${DOCS_INSTRUCTIONS}`;
8-
const ERR_SUMMARIZER_MODEL_NOT_AVAILABLE = `The Summarizer API is enabled, but the model download hasn't started yet, maybe awaiting device capability check. ${DOCS_INSTRUCTIONS}`;
8+
const ERR_SUMMARIZER_API_NOT_DETECTED = `The Summarizer API is not available. ${WA_DOCS_INSTRUCTIONS}`;
9+
const ERR_SUMMARIZER_MODEL_NOT_AVAILABLE = `The Summarizer API is enabled, but the model download hasn't started yet, maybe awaiting device capability check. ${WA_DOCS_INSTRUCTIONS}`;
910

10-
const ERR_WRITER_API_NOT_DETECTED = `The Writer API is not available. ${DOCS_INSTRUCTIONS}`;
11-
const ERR_WRITER_MODEL_NOT_AVAILABLE = `The Writer API is enabled, but the model download hasn't started yet, maybe awaiting device capability check. ${DOCS_INSTRUCTIONS}`;
11+
const ERR_WRITER_API_NOT_DETECTED = `The Writer API is not available. ${WA_DOCS_INSTRUCTIONS}`;
12+
const ERR_WRITER_MODEL_NOT_AVAILABLE = `The Writer API is enabled, but the model download hasn't started yet, maybe awaiting device capability check. ${WA_DOCS_INSTRUCTIONS}`;
1213

13-
const ERR_REWRITER_API_NOT_DETECTED = `The Rewriter API is not available. ${DOCS_INSTRUCTIONS}`;
14-
const ERR_REWRITER_MODEL_NOT_AVAILABLE = `The Rewriter API is enabled, but the model download hasn't started yet, maybe awaiting device capability check. ${DOCS_INSTRUCTIONS}`;
14+
const ERR_REWRITER_API_NOT_DETECTED = `The Rewriter API is not available. ${WA_DOCS_INSTRUCTIONS}`;
15+
const ERR_REWRITER_MODEL_NOT_AVAILABLE = `The Rewriter API is enabled, but the model download hasn't started yet, maybe awaiting device capability check. ${WA_DOCS_INSTRUCTIONS}`;
1516

1617
const ERR_API_CAPABILITY_ERROR = "Cannot create the session now. API availability error: ";
1718
const ERR_FAILED_CREATING_MODEL = "Could not create the session. Error: ";

0 commit comments

Comments
 (0)