File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import { countTokens } from '../lib/methods/count-tokens';
21
21
import { CountTokensRequest , RequestOptions } from '../lib/types' ;
22
22
import { ApiSettings } from '../lib/types/internal' ;
23
23
import { Task } from '../lib/requests/request' ;
24
- import { GoogleAIBackend , VertexAIBackend } from '../lib/backend' ;
24
+ import { GoogleAIBackend } from '../lib/backend' ;
25
25
import { SpiedFunction } from 'jest-mock' ;
26
26
import { mapCountTokensRequest } from '../lib/googleai-mappers' ;
27
27
@@ -30,7 +30,7 @@ const fakeApiSettings: ApiSettings = {
30
30
project : 'my-project' ,
31
31
location : 'us-central1' ,
32
32
appId : '' ,
33
- backend : new VertexAIBackend ( ) ,
33
+ backend : new GoogleAIBackend ( ) ,
34
34
} ;
35
35
36
36
const fakeGoogleAIApiSettings : ApiSettings = {
Original file line number Diff line number Diff line change @@ -210,6 +210,7 @@ export async function makeRequest(
210
210
}
211
211
if (
212
212
response . status === 403 &&
213
+ errorDetails &&
213
214
errorDetails . some ( ( detail : ErrorDetails ) => detail . reason === 'SERVICE_DISABLED' ) &&
214
215
errorDetails . some ( ( detail : ErrorDetails ) =>
215
216
( detail . links as Array < Record < string , string > > ) ?. [ 0 ] ?. description ?. includes (
Original file line number Diff line number Diff line change 12
12
"@react-native-community/cli" : " 15.1.3" ,
13
13
"@react-native-community/cli-platform-android" : " 15.1.3" ,
14
14
"@react-native-community/cli-platform-ios" : " 15.1.3" ,
15
- "@react-native-firebase/ai" : " file:../packages/ai " ,
15
+ "@react-native-firebase/ai" : " 23.2.1 " ,
16
16
"@react-native-firebase/analytics" : " 23.2.1" ,
17
17
"@react-native-firebase/app" : " 23.2.1" ,
18
18
"@react-native-firebase/app-check" : " 23.2.1" ,
You can’t perform that action at this time.
0 commit comments