File tree Expand file tree Collapse file tree 3 files changed +4
-11
lines changed Expand file tree Collapse file tree 3 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -21,11 +21,7 @@ import { getModularInstance } from '@firebase/util';
21
21
import { DEFAULT_LOCATION , VERTEX_TYPE } from './constants' ;
22
22
import { VertexAIService } from './service' ;
23
23
import { VertexAI , VertexAIOptions } from './public-types' ;
24
- import {
25
- ModelParams ,
26
- RequestOptions ,
27
- VertexAIErrorCode
28
- } from './types' ;
24
+ import { ModelParams , RequestOptions , VertexAIErrorCode } from './types' ;
29
25
import { VertexAIError } from './errors' ;
30
26
import { GenerativeModel } from './models/generative-model' ;
31
27
Original file line number Diff line number Diff line change 16
16
*/
17
17
18
18
import { FirebaseError } from '@firebase/util' ;
19
- import {
20
- VertexAIErrorCode ,
21
- CustomErrorData
22
- } from './types' ;
19
+ import { VertexAIErrorCode , CustomErrorData } from './types' ;
23
20
import { VERTEX_TYPE } from './constants' ;
24
21
25
22
/**
@@ -38,7 +35,7 @@ export class VertexAIError extends FirebaseError {
38
35
constructor (
39
36
readonly code : VertexAIErrorCode ,
40
37
readonly message : string ,
41
- readonly customErrorData ?: CustomErrorData ,
38
+ readonly customErrorData ?: CustomErrorData
42
39
) {
43
40
// Match error format used by FirebaseError from ErrorFactory
44
41
const service = VERTEX_TYPE ;
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ export interface CustomErrorData {
49
49
50
50
/** HTTP status text of the error response. */
51
51
statusText ?: string ;
52
-
52
+
53
53
/** Response from a {@link GenerateContentRequest} */
54
54
response ?: GenerateContentResponse ;
55
55
You can’t perform that action at this time.
0 commit comments