@@ -61,17 +61,17 @@ export class ChromeAdapterImpl implements ChromeAdapter {
61
61
/**
62
62
* Checks if a given request can be made on-device.
63
63
*
64
- * <ol>Encapsulates a few concerns:
65
- * <li>the mode</li>
66
- * <li>API existence</li>
67
- * <li>prompt formatting</li>
68
- * <li>model availability, including triggering download if necessary</li>
69
- * </ol>
64
+ * Encapsulates a few concerns:
65
+ * the mode
66
+ * API existence
67
+ * prompt formatting
68
+ * model availability, including triggering download if necessary
70
69
*
71
- * <p>Pros: callers needn't be concerned with details of on-device availability.</p>
72
- * <p>Cons: this method spans a few concerns and splits request validation from usage.
70
+ *
71
+ * Pros: callers needn't be concerned with details of on-device availability.</p>
72
+ * Cons: this method spans a few concerns and splits request validation from usage.
73
73
* If instance variables weren't already part of the API, we could consider a better
74
- * separation of concerns.</p>
74
+ * separation of concerns.
75
75
*/
76
76
async isAvailable ( request : GenerateContentRequest ) : Promise < boolean > {
77
77
if ( ! this . mode ) {
@@ -129,8 +129,9 @@ export class ChromeAdapterImpl implements ChromeAdapter {
129
129
/**
130
130
* Generates content on device.
131
131
*
132
- * <p>This is comparable to {@link GenerativeModel.generateContent} for generating content in
133
- * Cloud.</p>
132
+ * @remarks
133
+ * This is comparable to {@link GenerativeModel.generateContent} for generating content in
134
+ * Cloud.
134
135
* @param request - a standard Firebase AI {@link GenerateContentRequest}
135
136
* @returns {@link Response }, so we can reuse common response formatting.
136
137
*/
@@ -149,8 +150,9 @@ export class ChromeAdapterImpl implements ChromeAdapter {
149
150
/**
150
151
* Generates content stream on device.
151
152
*
152
- * <p>This is comparable to {@link GenerativeModel.generateContentStream} for generating content in
153
- * Cloud.</p>
153
+ * @remarks
154
+ * This is comparable to {@link GenerativeModel.generateContentStream} for generating content in
155
+ * Cloud.
154
156
* @param request - a standard Firebase AI {@link GenerateContentRequest}
155
157
* @returns {@link Response }, so we can reuse common response formatting.
156
158
*/
@@ -228,11 +230,11 @@ export class ChromeAdapterImpl implements ChromeAdapter {
228
230
/**
229
231
* Triggers out-of-band download of an on-device model.
230
232
*
231
- * <p> Chrome only downloads models as needed. Chrome knows a model is needed when code calls
232
- * LanguageModel.create.</p>
233
+ * Chrome only downloads models as needed. Chrome knows a model is needed when code calls
234
+ * LanguageModel.create.
233
235
*
234
- * <p> Since Chrome manages the download, the SDK can only avoid redundant download requests by
235
- * tracking if a download has previously been requested.</p>
236
+ * Since Chrome manages the download, the SDK can only avoid redundant download requests by
237
+ * tracking if a download has previously been requested.
236
238
*/
237
239
private download ( ) : void {
238
240
if ( this . isDownloading ) {
@@ -302,12 +304,12 @@ export class ChromeAdapterImpl implements ChromeAdapter {
302
304
/**
303
305
* Abstracts Chrome session creation.
304
306
*
305
- * <p> Chrome uses a multi-turn session for all inference. Firebase AI uses single-turn for all
307
+ * Chrome uses a multi-turn session for all inference. Firebase AI uses single-turn for all
306
308
* inference. To map the Firebase AI API to Chrome's API, the SDK creates a new session for all
307
- * inference.</p>
309
+ * inference.
308
310
*
309
- * <p> Chrome will remove a model from memory if it's no longer in use, so this method ensures a
310
- * new session is created before an old session is destroyed.</p>
311
+ * Chrome will remove a model from memory if it's no longer in use, so this method ensures a
312
+ * new session is created before an old session is destroyed.
311
313
*/
312
314
private async createSession ( ) : Promise < LanguageModel > {
313
315
if ( ! this . languageModelProvider ) {
0 commit comments