File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -139,6 +139,8 @@ export class ChatSession {
139
139
140
140
// @public
141
141
export interface ChromeAdapter {
142
+ // @internal (undocumented)
143
+ countTokens(request : CountTokensRequest ): Promise <Response >;
142
144
generateContent(request : GenerateContentRequest ): Promise <Response >;
143
145
generateContentStream(request : GenerateContentRequest ): Promise <Response >;
144
146
isAvailable(request : GenerateContentRequest ): Promise <boolean >;
Original file line number Diff line number Diff line change 15
15
* limitations under the License.
16
16
*/
17
17
18
- import { GenerateContentRequest } from './requests' ;
18
+ import { CountTokensRequest , GenerateContentRequest } from './requests' ;
19
19
20
20
/**
21
21
* <b>(EXPERIMENTAL)</b> Defines an inference "backend" that uses Chrome's on-device model,
@@ -51,4 +51,9 @@ export interface ChromeAdapter {
51
51
* @param request - a standard Firebase AI {@link GenerateContentRequest}
52
52
*/
53
53
generateContentStream ( request : GenerateContentRequest ) : Promise < Response > ;
54
+
55
+ /**
56
+ * @internal
57
+ */
58
+ countTokens ( request : CountTokensRequest ) : Promise < Response > ;
54
59
}
You can’t perform that action at this time.
0 commit comments