File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,8 @@ export function getAI(
66
66
app,
67
67
backend : options . backend ,
68
68
location : ( options . backend as VertexAIBackend ) ?. location || '' ,
69
+ appCheck : options . appCheck || null ,
70
+ auth : options . auth || null ,
69
71
} as AI ;
70
72
}
71
73
Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ export abstract class AIModel {
66
66
location : ai . location ,
67
67
backend : ai . backend ,
68
68
} ;
69
+
69
70
if ( ( ai as AIService ) . appCheck ) {
70
71
this . _apiSettings . getAppCheckToken = ( ) => ( ai as AIService ) . appCheck ! . getToken ( ) ;
71
72
}
Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ export interface AIOptions {
33
33
* The backend configuration to use for the AI service instance.
34
34
*/
35
35
backend : Backend ;
36
+ appCheck ?: FirebaseAppCheckTypes . Module | null ;
37
+ auth ?: FirebaseAuthTypes . Module | null ;
36
38
}
37
39
38
40
/**
You can’t perform that action at this time.
0 commit comments