File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
test/unit/machine-learning Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import * as utils from '../utils/index';
21
21
import * as validator from '../utils/validator' ;
22
22
import { FirebaseApp } from '../firebase-app' ;
23
23
24
- const ML_V1BETA1_API = 'https://mlkit .googleapis.com/v1beta1 ' ;
24
+ const ML_V1BETA2_API = 'https://firebaseml .googleapis.com/v1beta2 ' ;
25
25
const FIREBASE_VERSION_HEADER = {
26
26
'X-Firebase-Client' : 'fire-admin-node/<XXX_SDK_VERSION_XXX>' ,
27
27
} ;
@@ -253,7 +253,7 @@ export class MachineLearningApiClient {
253
253
private getUrl ( ) : Promise < string > {
254
254
return this . getProjectIdPrefix ( )
255
255
. then ( ( projectIdPrefix ) => {
256
- return `${ ML_V1BETA1_API } /${ this . projectIdPrefix } ` ;
256
+ return `${ ML_V1BETA2_API } /${ this . projectIdPrefix } ` ;
257
257
} ) ;
258
258
}
259
259
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ const expect = chai.expect;
32
32
33
33
describe ( 'MachineLearningApiClient' , ( ) => {
34
34
35
- const BASE_URL = 'https://mlkit .googleapis.com/v1beta1 ' ;
35
+ const BASE_URL = 'https://firebaseml .googleapis.com/v1beta2 ' ;
36
36
37
37
const MODEL_ID = '1234567' ;
38
38
const MODEL_RESPONSE = {
You can’t perform that action at this time.
0 commit comments