@@ -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
69
+ *
70
70
*
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.
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,8 @@ 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
+ * This is comparable to {@link GenerativeModel.generateContent} for generating content in
133
+ * Cloud.
134
134
* @param request - a standard Firebase AI {@link GenerateContentRequest}
135
135
* @returns {@link Response }, so we can reuse common response formatting.
136
136
*/
@@ -149,8 +149,8 @@ export class ChromeAdapterImpl implements ChromeAdapter {
149
149
/**
150
150
* Generates content stream on device.
151
151
*
152
- * <p> This is comparable to {@link GenerativeModel.generateContentStream} for generating content in
153
- * Cloud.</p>
152
+ * This is comparable to {@link GenerativeModel.generateContentStream} for generating content in
153
+ * Cloud.
154
154
* @param request - a standard Firebase AI {@link GenerateContentRequest}
155
155
* @returns {@link Response }, so we can reuse common response formatting.
156
156
*/
@@ -228,11 +228,11 @@ export class ChromeAdapterImpl implements ChromeAdapter {
228
228
/**
229
229
* Triggers out-of-band download of an on-device model.
230
230
*
231
- * <p> Chrome only downloads models as needed. Chrome knows a model is needed when code calls
232
- * LanguageModel.create.</p>
231
+ * Chrome only downloads models as needed. Chrome knows a model is needed when code calls
232
+ * LanguageModel.create.
233
233
*
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>
234
+ * Since Chrome manages the download, the SDK can only avoid redundant download requests by
235
+ * tracking if a download has previously been requested.
236
236
*/
237
237
private download ( ) : void {
238
238
if ( this . isDownloading ) {
@@ -302,12 +302,12 @@ export class ChromeAdapterImpl implements ChromeAdapter {
302
302
/**
303
303
* Abstracts Chrome session creation.
304
304
*
305
- * <p> Chrome uses a multi-turn session for all inference. Firebase AI uses single-turn for all
305
+ * Chrome uses a multi-turn session for all inference. Firebase AI uses single-turn for all
306
306
* inference. To map the Firebase AI API to Chrome's API, the SDK creates a new session for all
307
- * inference.</p>
307
+ * inference.
308
308
*
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>
309
+ * 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.
311
311
*/
312
312
private async createSession ( ) : Promise < LanguageModel > {
313
313
if ( ! this . languageModelProvider ) {
0 commit comments